tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
assignable_from.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CONCEPTS_ASSIGNABLE_FROM_HPP
4#define TETL_CONCEPTS_ASSIGNABLE_FROM_HPP
5
11
12namespace etl {
13
14// clang-format off
15
18template<typename LHS, typename RHS>
21 // and common_reference_with<remove_reference_t<LHS> const&, remove_reference_t<RHS> const&>
22 and requires(LHS lhs, RHS&& rhs) {
23 { lhs = etl::forward<RHS>(rhs) } -> same_as<LHS>;
24 };
25
26// clang-format on
27
28} // namespace etl
29
30#endif // TETL_CONCEPTS_ASSIGNABLE_FROM_HPP
Definition assignable_from.hpp:19
The concept same_as<T, U> is satisfied if and only if T and U denote the same type....
Definition same_as.hpp:19
Definition adjacent_find.hpp:8
constexpr bool is_lvalue_reference_v
Definition is_lvalue_reference.hpp:20
constexpr auto forward(remove_reference_t< T > &param) noexcept -> T &&
Forwards lvalues as either lvalues or as rvalues, depending on T. When t is a forwarding reference (a...
Definition forward.hpp:18