Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::experimental::ranges::Copyable

The concept Copyable<T> specifies that T is an Movable object type that can also copied (that is, it supports copy construction and copy assignment).

NotebookLM
template< class T >
concept bool Copyable =
    CopyConstructible<T> &&
    Movable<T> &&
    Assignable<T&, const T&>;
(ranges TS)

The concept Copyable<T> specifies that T is an Movable object type that can also copied (that is, it supports copy construction and copy assignment).

Notes

It is intended that Copyable<T> also requires Assignable<T&, const T> (assignment from const rvalue) and Assignable<T&, T&> (assignment from non-const lvalue) to be satisfied.

See also

specifies that an object of a type can be moved and swapped
(concept)

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.