tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
borrowed_iterator_t.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_RANGES_BORROWED_ITERATOR_T_HPP
5#define TETL_RANGES_BORROWED_ITERATOR_T_HPP
6
7#include <etl/_ranges/borrowed_range.hpp>
8#include <etl/_ranges/dangling.hpp>
9#include <etl/_ranges/iterator_t.hpp>
10#include <etl/_ranges/range.hpp>
11#include <etl/_type_traits/conditional.hpp>
12
13namespace etl::ranges {
14
15/// \ingroup ranges
16template <etl::ranges::range R>
17using borrowed_iterator_t
18 = etl::conditional_t<etl::ranges::borrowed_range<R>, etl::ranges::iterator_t<R>, etl::ranges::dangling>;
19
20} // namespace etl::ranges
21
22#endif // TETL_RANGES_BORROWED_ITERATOR_T_HPP
Definition ranges_in_fun_result.hpp:12
Definition adjacent_find.hpp:9
Definition dangling.hpp:10