std::copyable
From cppreference.com
 
 
 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
Concepts library 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
  (C++20)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)(C++20)
(C++20)
copyable
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
 Exposition-only concepts
 (C++20)
Defined in header 
 
 
<concepts> 
 template< class T >
 
 (since C++20) 
concept copyable =
    std::copy_constructible <T> &&
    std::movable <T> &&
    std::assignable_from <T&, T&> &&
    std::assignable_from <T&, const T&> &&
The concept copyable<T> specifies that T is a movable object type that can also be copied (that is, it supports copy construction and copy assignment).
[edit] References
- C++23 standard (ISO/IEC 14882:2024):
- 18.6 Object concepts [concepts.object]
 
- C++20 standard (ISO/IEC 14882:2020):
- 18.6 Object concepts [concepts.object]