Boost C++ Libraries 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.



A type is Assignable if it is possible to assign one object of the type to another object of that type.


T is type that is a model of Assignable
t is an object of type T
u is an object of type T or possibly const T


Valid expressions

Name Expression Return type Semantics
Assignment t = u T& t is equivalent to u


See also

DefaultConstructible and CopyConstructible

Valid HTML 4.01 Transitional

Revised 05 December, 2006

Copyright © 2000 Jeremy Siek, Univ.of Notre Dame (

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at