pilfered
Tag wrapper to specify pilfer-construction.
Synopsis
Defined in header <boost/json/pilfer.hpp>.
template<
class T>
class pilfered;
Member Functions
Name | Description |
---|---|
Return a reference to the pilferable object. |
|
Return a pointer to the pilferable object. |
|
|
Constructor. |
Description
This wrapper is used to specify a pilfer constructor overload.
Example
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.
See Also
Convenience header <boost/json.hpp>.