-
- Downloads
libstdc++: Add comparison operators to sequence containers
Some more C++20 changes from P1614R2, "The Mothership has Landed". This implements <=> for sequence containers (and the __normal_iterator and _Pointer_adapter class templates). * include/bits/forward_list.h (forward_list): Define operator<=> and remove redundant comparison operators for C++20. * include/bits/stl_bvector.h (vector<bool, Alloc>): Likewise. * include/bits/stl_deque.h (deque): Likewise. * include/bits/stl_iterator.h (__normal_iterator): Likewise. * include/bits/stl_list.h (list): Likewise. * include/bits/stl_vector.h (vector): Likewise. * include/debug/deque (__gnu_debug::deque): Likewise. * include/debug/forward_list (__gnu_debug::forward_list): Likewise. * include/debug/list (__gnu_debug::list): Likewise. * include/debug/safe_iterator.h (__gnu_debug::_Safe_iterator): Likewise. * include/debug/vector (__gnu_debug::vector): Likewise. * include/ext/pointer.h (__gnu_cxx::_Pointer_adapter): Define operator<=> for C++20. * testsuite/23_containers/deque/operators/cmp_c++20.cc: New test. * testsuite/23_containers/forward_list/cmp_c++20.cc: New test. * testsuite/23_containers/list/cmp_c++20.cc: New test. * testsuite/23_containers/vector/bool/cmp_c++20.cc: New test. * testsuite/23_containers/vector/cmp_c++20.cc: New test.
Showing
- libstdc++-v3/ChangeLog 21 additions, 0 deletionslibstdc++-v3/ChangeLog
- libstdc++-v3/include/bits/forward_list.h 27 additions, 1 deletionlibstdc++-v3/include/bits/forward_list.h
- libstdc++-v3/include/bits/stl_bvector.h 12 additions, 1 deletionlibstdc++-v3/include/bits/stl_bvector.h
- libstdc++-v3/include/bits/stl_deque.h 49 additions, 8 deletionslibstdc++-v3/include/bits/stl_deque.h
- libstdc++-v3/include/bits/stl_iterator.h 20 additions, 17 deletionslibstdc++-v3/include/bits/stl_iterator.h
- libstdc++-v3/include/bits/stl_list.h 26 additions, 0 deletionslibstdc++-v3/include/bits/stl_list.h
- libstdc++-v3/include/bits/stl_vector.h 25 additions, 0 deletionslibstdc++-v3/include/bits/stl_vector.h
- libstdc++-v3/include/debug/deque 7 additions, 0 deletionslibstdc++-v3/include/debug/deque
- libstdc++-v3/include/debug/forward_list 8 additions, 0 deletionslibstdc++-v3/include/debug/forward_list
- libstdc++-v3/include/debug/list 7 additions, 0 deletionslibstdc++-v3/include/debug/list
- libstdc++-v3/include/debug/safe_iterator.h 21 additions, 0 deletionslibstdc++-v3/include/debug/safe_iterator.h
- libstdc++-v3/include/debug/vector 7 additions, 0 deletionslibstdc++-v3/include/debug/vector
- libstdc++-v3/include/ext/pointer.h 7 additions, 1 deletionlibstdc++-v3/include/ext/pointer.h
- libstdc++-v3/testsuite/23_containers/deque/operators/cmp_c++20.cc 161 additions, 0 deletions...+-v3/testsuite/23_containers/deque/operators/cmp_c++20.cc
- libstdc++-v3/testsuite/23_containers/forward_list/cmp_c++20.cc 138 additions, 0 deletions...dc++-v3/testsuite/23_containers/forward_list/cmp_c++20.cc
- libstdc++-v3/testsuite/23_containers/list/cmp_c++20.cc 138 additions, 0 deletionslibstdc++-v3/testsuite/23_containers/list/cmp_c++20.cc
- libstdc++-v3/testsuite/23_containers/vector/bool/cmp_c++20.cc 73 additions, 0 deletions...tdc++-v3/testsuite/23_containers/vector/bool/cmp_c++20.cc
- libstdc++-v3/testsuite/23_containers/vector/cmp_c++20.cc 161 additions, 0 deletionslibstdc++-v3/testsuite/23_containers/vector/cmp_c++20.cc
Loading
Please register or sign in to comment