This component‐private struct keeps track of the allocator for a bsl::variant object.

Synopsis

Declared in <bslstl_variant.h>

template<bool t_AA>
struct Variant_AllocatorBase;

Description

The primary template is used when the variant is not allocator‐aware (because it has no allocator‐aware alternatives).

Member Functions

Name

Description

mechanism

Return a null pointer.

Specializations

Name

Description

Variant_AllocatorBase<true>

This specialization is used when the variant is allocator‐aware.

Derived Classes

Name

Description

Variant_Base

Define the data representation and special member functions of bsl::variant.

Created with MrDocs