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
field::operator= (30 of 30 overloads)

Replaces *this with v, changing the kind to v.kind() and destroying any previous contents.

Synopsis
field&
operator=(
    const field_view& v);
Exception safety

Basic guarantee. Internal allocations may throw.

Object lifetimes

Invalidates references to *this obtained by as_xxx and get_xxx functions, but not the ones obtained by field::operator field_view().

*thisis guaranteed to be valid even after v becomes invalid.


PrevUpHomeNext