namespace std {
template<class T>
concept movable-value = // exposition only
move_constructible<decay_t<T>> &&
constructible_from<decay_t<T>, T> &&
(!is_array_v<remove_reference_t<T>>);
}
概要
movable-value
は、型T
がムーブ構築可能な値であることを表す説明専用のコンセプトである。
バージョン
言語
- C++26