3#ifndef TETL_ALGORITHM_REVERSE_HPP
4#define TETL_ALGORITHM_REVERSE_HPP
15template <
typename B
idirIt>
16constexpr auto reverse(BidirIt first, BidirIt last) ->
void
24 for (--last; first < last; (void)++first, --last) {
28 while (first != last and first != --last) {
constexpr auto iter_swap(ForwardIt1 a, ForwardIt2 b) -> void
Swaps the values of the elements the given iterators are pointing to.
Definition iter_swap.hpp:19
constexpr auto reverse(BidirIt first, BidirIt last) -> void
Reverses the order of the elements in the range [first, last).
Definition reverse.hpp:16
Definition adjacent_find.hpp:8
constexpr bool is_base_of_v
Definition is_base_of.hpp:39
iterator_traits is the type trait class that provides uniform interface to the properties of LegacyIt...
Definition iterator_traits.hpp:47