tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
legacy_iterator.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_ITERATOR_LEGACY_ITERATOR_HPP
4
#define TETL_ITERATOR_LEGACY_ITERATOR_HPP
5
6
#include <
etl/_concepts/copyable.hpp
>
7
#include <
etl/_concepts/referenceable.hpp
>
8
#include <
etl/_concepts/same_as.hpp
>
9
10
namespace
etl
{
11
15
template
<
typename
Iter>
16
concept
legacy_iterator
=
requires
(Iter i) {
17
{ *i } ->
etl::referenceable
;
18
{ ++i } ->
etl::same_as<Iter&>
;
19
{ *i++ } ->
etl::referenceable
;
20
} and
etl::copyable<Iter>
;
21
22
}
// namespace etl
23
24
#endif
// TETL_ITERATOR_LEGACY_ITERATOR_HPP
etl::copyable
Definition
copyable.hpp:14
etl::legacy_iterator
Definition
legacy_iterator.hpp:16
etl::referenceable
Definition
referenceable.hpp:14
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
copyable.hpp
etl
Definition
adjacent_find.hpp:8
referenceable.hpp
same_as.hpp
include
etl
_iterator
legacy_iterator.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0