Commit db58c8e9 by François Dumont

libstdc++: Add _GLIBCXX_DEBUG safe iterator C++20 iterator concept

	* include/debug/safe_iterator.h
	[__cpp_lib_concepts](_Safe_iterator<>::iterator_concept): Define for
	C++20.

From-SVN: r278717
parent 616f2173
2019-11-26 François Dumont <fdumont@gcc.gnu.org>
* include/debug/safe_iterator.h
[__cpp_lib_concepts](_Safe_iterator<>::iterator_concept): Define for
C++20.
2019-11-25 Jonathan Wakely <jwakely@redhat.com> 2019-11-25 Jonathan Wakely <jwakely@redhat.com>
* include/bits/iterator_concepts.h (ranges::iter_swap): Fix parameter * include/bits/iterator_concepts.h (ranges::iter_swap): Fix parameter
......
...@@ -140,6 +140,10 @@ namespace __gnu_debug ...@@ -140,6 +140,10 @@ namespace __gnu_debug
typedef typename _Traits::reference reference; typedef typename _Traits::reference reference;
typedef typename _Traits::pointer pointer; typedef typename _Traits::pointer pointer;
#if __cplusplus > 201703L && __cpp_lib_concepts
using iterator_concept = std::__detail::__iter_concept<_Iterator>;
#endif
/// @post the iterator is singular and unattached /// @post the iterator is singular and unattached
_Safe_iterator() _GLIBCXX_NOEXCEPT : _Iter_base() { } _Safe_iterator() _GLIBCXX_NOEXCEPT : _Iter_base() { }
......
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