std::experimental::ranges::Copyable (3) - Linux Manuals

std::experimental::ranges::Copyable: std::experimental::ranges::Copyable


std::experimental::ranges::Copyable - std::experimental::ranges::Copyable


Defined in header <experimental/ranges/concepts>
template <class T>
concept bool Copyable =
CopyConstructible<T> && (ranges TS)
Movable<T> &&
Assignable<T&, const T&>;

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).


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
Movable (concept)