tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
dereferenceable.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_ITERATOR_DEREFERENCEABLE_HPP
4#define TETL_ITERATOR_DEREFERENCEABLE_HPP
5
8
9namespace etl::detail {
10
11template <typename T>
12concept dereferenceable = requires(T& t) {
14 { *t } -> can_reference;
15};
16
17} // namespace etl::detail
18
19#endif // TETL_ITERATOR_DEREFERENCEABLE_HPP
auto declval() noexcept -> add_rvalue_reference_t< T >