std::assignable_from
From cppreference.com
| Defined in header <concepts>
|
||
| template< class LHS, class RHS > concept assignable_from = |
(since C++20) | |
The concept assignable_from<LHS, RHS> specifies that an expression of the type and value category specified by RHS can be assigned to an lvalue expression whose type is specified by LHS.
Contents |
[edit] Semantic requirements
Given
-
lhs, an lvalue that refers to an objectlcopysuch that decltype((lhs)) isLHS, -
rhs, an expression such that decltype((rhs)) isRHS, -
rcopy, a distinct object that is equal torhs,
assignable_from<LHS, RHS> is modeled only if