std::copyable
來自 cppreference.com
< cpp | 概念 (concepts)
定義於標頭檔案 <concepts> |
||
template< class T > concept copyable = |
(C++20 起) | |
概念 copyable<T>
指定 T
是一個 movable
(可移動) 物件型別,並且也可以複製(即,它支援複製構造和複製賦值)。
[編輯] 參考
- C++23 標準 (ISO/IEC 14882:2024)
- 18.6 物件概念 [concepts.object]
- C++20 標準 (ISO/IEC 14882:2020)
- 18.6 物件概念 [concepts.object]
[編輯] 另請參閱
(C++20) |
指定型別的物件可以被移動和交換 (概念) |