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
Pilfer constructor.
string( pilfered< string > other);
The string is constructed by acquiring ownership of the contents of
other using pilfer semantics.
This is more efficient than move construction, when it is known that
the moved-from object will be immediately destroyed afterwards.
Constant.
No-throw guarantee.
|
Name |
Description |
|---|---|
|
|
The value to pilfer. After pilfer construction, |