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