aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/debug/array
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/include/debug/array')
-rw-r--r--libstdc++-v3/include/debug/array4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/debug/array b/libstdc++-v3/include/debug/array
index 0ca2fca..9e94e65 100644
--- a/libstdc++-v3/include/debug/array
+++ b/libstdc++-v3/include/debug/array
@@ -71,7 +71,7 @@ namespace __debug
template<std::size_t _Size>
struct _Array_check_nonempty
{
- bool empty() { return _Size == 0; }
+ _GLIBCXX_NODISCARD bool empty() { return _Size == 0; }
_Array_check_nonempty()
{ __glibcxx_check_nonempty(); }
@@ -145,7 +145,7 @@ namespace __debug
constexpr size_type
max_size() const noexcept { return _Nm; }
- constexpr bool
+ _GLIBCXX_NODISCARD constexpr bool
empty() const noexcept { return size() == 0; }
// Element access.