We already added it to the std::vector primary template.
* include/bits/stl_bvector.h (vector<bool>::empty()): Add nodiscard
attribute.
From-SVN: r270648
2019-04-29 Jonathan Wakely <jwakely@redhat.com>
+ * include/bits/stl_bvector.h (vector<bool>::empty()): Add nodiscard
+ attribute.
+
* include/bits/stl_iterator_base_types.h (_Iter_base): Remove unused
class template and partial specialization.
{ return size_type(const_iterator(this->_M_impl._M_end_addr(), 0)
- begin()); }
- bool
+ _GLIBCXX_NODISCARD bool
empty() const _GLIBCXX_NOEXCEPT
{ return begin() == end(); }