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 an older version of Boost and was released in 2022. The current version is 1.89.0.
Tag wrapper to specify pilfer-construction.
Defined in header <boost/json/pilfer.hpp>
template< class T> class pilfered
|
Name |
Description |
|---|---|
|
Return a reference to the pilferable object. |
|
|
Return a pointer to the pilferable object. |
|
|
pilfered [constructor] |
Constructor. |
This wrapper is used to specify a pilfer constructor overload.
A pilfer constructor accepts a single argument of type pilfered and throws nothing:
struct T { T( pilfered<T> ) noexcept; };
The constructor should not be marked explicit.
pilfer,
is_pilfer_constructible, Valueless
Variants Considered Harmful
Convenience header <boost/json.hpp>