tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
incrementable.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2024 Tobias Hienzsch
3
4#ifndef TETL_ITERATOR_INCREMENTABLE_HPP
5#define TETL_ITERATOR_INCREMENTABLE_HPP
6
7#include <etl/_concepts/regular.hpp>
8#include <etl/_concepts/same_as.hpp>
9#include <etl/_iterator/weakly_incrementable.hpp>
10
11namespace etl {
12
13template <typename T>
14concept incrementable = etl::regular<T> and etl::weakly_incrementable<T> and requires(T i) {
15 { i++ } -> etl::same_as<T>;
16};
17
18} // namespace etl
19
20#endif // TETL_ITERATOR_INCREMENTABLE_HPP
Definition adjacent_find.hpp:9