ConceptC++ Concept Web

Concept CopyConstructible

auto concept CopyConstructible<typename T> {
  T::T(T const&);
  T::~T();
};

Where Defined

#include <concepts>

Description

Concept CopyConstructible requires the ability to create and destroy copies of an object.

Note that, unlike the copy construction requirements in the C++98 Standard Library, this definition of CopyConstructible does not contain requirements for the address-of operator&. These requirements are unrelated to copy construction, and their inclusion would prevent references from meeting the CopyConstructible requirements.