BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslstl::Variant_AllocatorBase< t_AA > Struct Template Reference

#include <bslstl_variant.h>

Public Member Functions

BloombergLP::bslma::Allocator * mechanism () const
 

Detailed Description

template<bool t_AA>
struct bslstl::Variant_AllocatorBase< t_AA >

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).

Member Function Documentation

◆ mechanism()

template<bool t_AA>
BloombergLP::bslma::Allocator * bslstl::Variant_AllocatorBase< t_AA >::mechanism ( ) const
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.


The documentation for this struct was generated from the following file: