|
BDE 4.39.x Production Release
|
#include <bslstl_variant.h>
This component-private struct keeps track of the allocator for a bsl::variant object. The primary template is used when the variant is not allocator-aware (because it has no allocator-aware alternatives).
See bslstl_variant
Public Member Functions | |
| BloombergLP::bslma::Allocator * | mechanism () const |
|
inline |
Return a null pointer.
bsl::variant is abstracted with respect to whether or not the specialization is allocator-aware; this is why both methods return bslma::Allocator* instead of bsl::allocator<char>. The returned pointer will be ignored (and not dereferenced) when passed to bslma::ConstructionUtil::construct.