This class has a constant value that is true if the specified TYPE is implicitly convertible from bslma::Allocator *. It thus "sniffs" whether UsesBslmaAllocator<TYPE>::value should be true. If the specified BYPASS parameter is true, the conversion check is skipped and value is hard‐coded to true. The bypass is needed because the xlC compiler will sometimes instantiate the copy constructor for TYPE, leading to compilation errors if TYPE is not copy constructible. This automatic sniffing is deprecated; having a type implicitly convertible from an allocator pointer is discouraged.

Synopsis

Declared in <bslma_usesbslmaallocator.h>

template<
    class TYPE,
    bool BYPASS>
struct UsesBslmaAllocator_Sniff;

Enums

Name

Description

Unnamed enum

Public constants.

Specializations

Name

Description

UsesBslmaAllocator_Sniff<TYPE, true>

Specialization of UsesBslmaAllocator_Sniff for which BYPASS is true.

Created with MrDocs