Commit ad1f4687 by Jonathan Wakely Committed by Jonathan Wakely

Add nodiscard to std::vector<bool>::empty()

We already added it to the std::vector primary template.

	* include/bits/stl_bvector.h (vector<bool>::empty()): Add nodiscard
	attribute.

From-SVN: r270648
parent 82b6276f
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.
......
......@@ -878,7 +878,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
{ return size_type(const_iterator(this->_M_impl._M_end_addr(), 0)
- begin()); }
bool
_GLIBCXX_NODISCARD bool
empty() const _GLIBCXX_NOEXCEPT
{ return begin() == end(); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment