Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Concept Assignable

Assignable

Description

Assignable types must have copy constructors, operator= for assignment, and the swap() function defined.

Refinement of

Notation

X
A type playing the role of assignable-type in the Assignable concept.
x, y
Objects of type X

Valid expressions

Name Expression Type Semantics

Assignment

x = y

X &

Require operator=

Swap

swap(x, y)

void

Require swap() function

Models

  • int

See also


PrevUpHomeNext