boost.png (6897 bytes) Home Libraries People FAQ More

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

Copyright © 2001, 2002 Indiana University
Copyright © 2000, 2001 University of Notre Dame du Lac
Copyright © 2000 Jeremy Siek, Lie-Quan Lee, Andrew Lumsdaine
Copyright © 1996-1999 Silicon Graphics Computer Systems, Inc.
Copyright © 1994 Hewlett-Packard Company

PrevUpHomeNext