|
BDE 4.14.0 Production release
|
#include <bslstl_variant.h>
Public Member Functions | |
| BloombergLP::bslma::Allocator * | mechanism () const |
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).
|
inline |
Return a null pointer. Note that this method has the same return type as the allocator-aware version so that the remainder of the implementation of 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.