|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||
Defined in header <concepts> | ||
template<class T> concept copy_constructible= | (since C++20) | |
The conceptcopy_constructible is satisfied ifT is an lvalue reference type, or if it is amove_constructible object type where an object of that type can constructed from a (possibly const) lvalue or const rvalue of that type in both direct- and copy-initialization contexts with the usual semantics (a copy is constructed with the source unchanged).
IfT is an object type, thencopy_constructible<T> is modeled only if given
the following are true:
copy_constructible [concept.copyconstructible] copy_constructible [concept.copyconstructible] (C++11)(C++11)(C++11) | checks if a type has a copy constructor (class template)[edit] |