C++ Boost

CopyConstructible

Description

A type is CopyConstructible if it is possible to copy objects of that type.

Notation

T is type that is a model of CopyConstructible
t is an object of type T
u is an object of type const T

Definitions

Valid expressions

Name Expression Return type Semantics
Copy constructor T(t) T t is equivalent to T(t)
Copy constructor
T(u)
T u is equivalent to T(u)
Destructor
t.~T()
T  
Address Operator
&t
T* denotes the address of t
Address Operator
&u
T* denotes the address of u

Models

See also

DefaultConstructible and Assignable

Copyright © 2000 Jeremy Siek, Univ.of Notre Dame (jsiek@lsc.nd.edu)