...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Replaces *this
with v
, changing the
kind to v.kind()
and destroying any previous contents.
field& operator=( const field_view& v);
Basic guarantee. Internal allocations may throw.
Invalidates references to *this
obtained by as_xxx and get_xxx functions,
but not the ones obtained by field::operator field_view()
.
*this
is
guaranteed to be valid even after v
becomes invalid.