tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
weakly_incrementable.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_ITERATOR_WEAKLY_INCREMENTABLE_HPP
4#define TETL_ITERATOR_WEAKLY_INCREMENTABLE_HPP
5
10
11namespace etl {
12
13// clang-format off
15template <typename Iter>
16concept weakly_incrementable = etl::movable<Iter> and requires(Iter i) {
19 { ++i } -> etl::same_as<Iter&>;
20 i++;
21};
22// clang-format on
23
24} // namespace etl
25
26#endif // TETL_ITERATOR_WEAKLY_INCREMENTABLE_HPP
Definition movable.hpp:15
The concept same_as<T, U> is satisfied if and only if T and U denote the same type....
Definition same_as.hpp:19
The concept signed_integral<T> is satisfied if and only if T is an integral type and is_signed_v<T> i...
Definition signed_integral.hpp:15
Definition weakly_incrementable.hpp:16
typename detail::iter_difference< T >::type iter_difference_t
Definition iter_difference_t.hpp:30
Definition adjacent_find.hpp:8