This implements most of the remaining C++20 additions to the <iterator> header. * include/bits/iterator_concepts.h (ranges::iter_swap): Fix parameter types of poison pill overload. Use remove_reference_t when checking constraints. * include/bits/stl_iterator.h (move_sentinel): Define for C++20. (move_iterator): Adjust definitions of nested types for C++20. Add hidden friends for move_sentinel operations, iter_move and iter_swap. (common_iterator, counted_iterator): Define for C++20. * testsuite/24_iterators/move_iterator/cust.cc: New test. * testsuite/24_iterators/move_iterator/sentinel.cc: New test. * testsuite/24_iterators/common_iterator/1.cc: New test. * testsuite/24_iterators/counted_iterator/1.cc: New test. From-SVN: r278698
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| associated_types | Loading commit data... | |
| back_insert_iterator | Loading commit data... | |
| bidirectional | Loading commit data... | |
| common_iterator | Loading commit data... | |
| contiguous | Loading commit data... | |
| counted_iterator | Loading commit data... | |
| customization_points | Loading commit data... | |
| forward | Loading commit data... | |
| front_insert_iterator | Loading commit data... | |
| headers/iterator | Loading commit data... | |
| input | Loading commit data... | |
| insert_iterator | Loading commit data... | |
| istream_iterator | Loading commit data... | |
| istreambuf_iterator | Loading commit data... | |
| move_iterator | Loading commit data... | |
| normal_iterator | Loading commit data... | |
| operations | Loading commit data... | |
| ostream_iterator | Loading commit data... | |
| ostreambuf_iterator | Loading commit data... | |
| output | Loading commit data... | |
| random_access | Loading commit data... | |
| range_access | Loading commit data... | |
| range_operations | Loading commit data... | |
| reverse_iterator | Loading commit data... | |
| container_access.cc | Loading commit data... |