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
9
10namespace etl {
11
15template <typename Iter>
16concept legacy_iterator = requires(Iter i) {
17 { *i } -> etl::referenceable;
18 { ++i } -> etl::same_as<Iter&>;
19 { *i++ } -> etl::referenceable;
21
22} // namespace etl
23
24#endif // TETL_ITERATOR_LEGACY_ITERATOR_HPP
Definition copyable.hpp:14
Definition legacy_iterator.hpp:16
Definition referenceable.hpp:14
The concept same_as<T, U> is satisfied if and only if T and U denote the same type....
Definition same_as.hpp:19
Definition adjacent_find.hpp:8