4#ifndef TETL_ITERATOR_REND_HPP
5#define TETL_ITERATOR_REND_HPP
7#include <etl/_iterator/begin.hpp>
11template <
typename Iter>
12struct reverse_iterator;
16template <
typename Container>
17constexpr auto rend(Container& c) ->
decltype(c.rend())
23template <
typename Container>
24constexpr auto rend(Container
const& c) ->
decltype(c.rend())
30template <
typename T, size_t N>
31constexpr auto rend(T (&array)[N]) -> reverse_iterator<T*>
33 return reverse_iterator<T*>(begin(array));
38template <
typename Container>
39constexpr auto crend(Container
const& c) ->
decltype(rend(c))
constexpr auto rend(Container const &c) -> decltype(c.rend())
Definition rend.hpp:24
constexpr auto rend(Container &c) -> decltype(c.rend())
Returns an iterator to the reverse-end of the given container.
Definition rend.hpp:17
constexpr auto rend(T(&array)[N]) -> reverse_iterator< T * >
Definition rend.hpp:31
constexpr auto crend(Container const &c) -> decltype(rend(c))
Returns an iterator to the reverse-end of the given container.
Definition rend.hpp:39
Definition adjacent_find.hpp:9