tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
convertible_to.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CONCEPTS_CONVERTIBLE_TO_HPP
4#define TETL_CONCEPTS_CONVERTIBLE_TO_HPP
5
8
9namespace etl {
10
16template <typename From, typename To>
18 = etl::is_convertible_v<From, To> and requires(etl::add_rvalue_reference_t<From> (&f)()) { static_cast<To>(f()); };
19
20} // namespace etl
21
22#endif // TETL_CONCEPTS_CONVERTIBLE_TO_HPP
The concept convertible_to<From, To> specifies that an expression of the same type and value category...
Definition convertible_to.hpp:18
Definition adjacent_find.hpp:8
constexpr bool is_convertible_v
Definition is_convertible.hpp:46