tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
legacy_bidirectional_iterator.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_CONCEPTS_LEGACY_BIDIRECTIONAL_ITERATOR_HPP
4
#define TETL_CONCEPTS_LEGACY_BIDIRECTIONAL_ITERATOR_HPP
5
6
#include <
etl/_concepts/convertible_to.hpp
>
7
#include <
etl/_concepts/same_as.hpp
>
8
#include <
etl/_iterator/iter_reference_t.hpp
>
9
#include <
etl/_iterator/legacy_forward_iterator.hpp
>
10
11
namespace
etl
{
12
16
template
<
typename
Iter>
17
concept
legacy_bidirectional_iterator
=
etl::legacy_forward_iterator<Iter>
and
requires
(Iter i) {
18
{ --i } ->
etl::same_as<Iter&>
;
19
{ i-- } ->
etl::convertible_to<Iter const&>
;
20
{ *i-- } ->
etl::same_as<etl::iter_reference_t<Iter>
>;
21
};
22
23
}
// namespace etl
24
25
#endif
// TETL_CONCEPTS_LEGACY_BIDIRECTIONAL_ITERATOR_HPP
etl::convertible_to
The concept convertible_to<From, To> specifies that an expression of the same type and value category...
Definition
convertible_to.hpp:18
etl::legacy_bidirectional_iterator
Definition
legacy_bidirectional_iterator.hpp:17
etl::legacy_forward_iterator
Definition
legacy_forward_iterator.hpp:23
etl::same_as
The concept same_as<T, U> is satisfied if and only if T and U denote the same type....
Definition
same_as.hpp:19
convertible_to.hpp
iter_reference_t.hpp
legacy_forward_iterator.hpp
etl
Definition
adjacent_find.hpp:8
same_as.hpp
include
etl
_iterator
legacy_bidirectional_iterator.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0