名前空間
変種

std::movable

提供: cppreference.com
<tbody> </tbody>
ヘッダ <concepts> で定義
template < class T > concept movable = std::is_object_v<T> && std::move_constructible<T> && std::assignable_from<T&, T> && std::swappable<T>;
(C++20以上)

コンセプト movable<T>T がムーブ可能なオブジェクトの型である (つまりムーブ構築、ムーブ代入ができ、 T 型の左辺値がスワップ可能である) ことを表します。

関連項目

(C++20)
その型のオブジェクトがコピー、ムーブ、およびスワップ可能であることを指定します
(コンセプト) [edit]
Morty Proxy This is a proxified and sanitized view of the page, visit original site.