BloombergLP::bslma

Package namespace for memory-allocation mechanisms.

Types

NameDescription
AAModel Metafunction that yields the AA model preferred by TYPE.
AAModelBsl Model tag for bsl-AA types.
AAModelIsSupported Metafunction that is true_type if TYPE supports AA model MODEL.
AAModelLegacy Model tag for legacy-AA types.
AAModelNone Model tag for non-AA types.
AAModelPmr Model tag for pmr-AA types.
AAModelStl Model tag for stl-AA types.
AATypeUtil Namespace for utility functions on allocator-aware types
Allocator Pure abstract protocol for clients and suppliers of raw memory.
AllocatorTraits_CallMaxSize Fallback max_size implementation when the allocator does not provide its own max_size member function.
AllocatorTraits_ConstPointerType Metafunction that yields the const pointer type for the specified (template parameter) T.
AllocatorTraits_ConstVoidPointerType Metafunction that yields the const void pointer type for allocator T.
AllocatorTraits_DifferenceType Metafunction that yields the difference type for allocator T.
AllocatorTraits_HasConstructMethod Metafunction detecting whether T provides a matching construct method.
AllocatorTraits_HasDestroyMethod Metafunction that detects whether T provides a destroy method with the specified signature.
AllocatorTraits_HasIsAlwaysEqual Metafunction detecting whether ALLOC defines nested is_always_equal.
AllocatorTraits_HasPropOnCopyAssign Metafunction detecting nested propagate_on_container_copy_assignment.
AllocatorTraits_HasPropOnMoveAssign Metafunction detecting nested propagate_on_container_move_assignment.
AllocatorTraits_HasPropOnSwap Metafunction detecting nested propagate_on_container_swap.
AllocatorTraits_HasSelectOnCopyMethod Metafunction detecting select_on_container_copy_construction.
AllocatorTraits_IsAlwaysEqual Use the allocator's nested is_always_equal when defined.
AllocatorTraits_PointerType Metafunction that yields the pointer type for allocator T.
AllocatorTraits_PropOnCopyAssign Default copy-assignment propagation trait to false_type when undefined.
AllocatorTraits_PropOnMoveAssign Default move-assignment propagation trait to false_type when undefined.
AllocatorTraits_PropOnSwap Default propagate_on_container_swap to false_type when undefined.
AllocatorTraits_RebindAlloc Metafunction that rebinds an allocator type to a different value type.
AllocatorTraits_RebindFront Primary template with no type unless T is a class template.
AllocatorTraits_SizeType Metafunction that yields the size type for the specified (template parameter) T.
AllocatorTraits_VoidPointerType Metafunction that yields the void pointer type for the specified (template parameter) T.
AllocatorUtil Namespace for utility functions on allocators
AllocatorUtil_Traits Traits extending allocator_traits to pointer-to-memory-resource types.
AutoDeallocator This class implements a range proctor that automatically deallocates managed memory blocks.
AutoDestructor This class implements a range proctor that destroys managed objects.
AutoRawDeleter Range proctor that deletes a contiguous sequence of objects on destruction.
BslAllocator_Voidish Object type that will be placeholder for 'void'
BufferAllocator Concrete buffer allocator that allocates from a user-supplied fixed-size buffer.
ConstructionUtil This struct provides a namespace for utility functions that construct elements of (a template parameter) TARGET_TYPE.
ConstructionUtil_AllocAdaptorUtil Component-private utility for adapting allocator objects (see specializations).
ConstructionUtil_ConstructionTrait Metafunction yielding one of the following three value constants:
ConstructionUtil_IsAllocatorPtr Metafunction that inherits from true_type if the ALLOC type is a pointer to bslma::Allocator or a class derived from it and false_type otherwise.
DeallocateBytesProctor Proctor that deallocates a managed memory block upon destruction.
DeallocateBytesProctor_PtrType Metafunction yielding the void-pointer type used by DeallocateBytesProctor.
DeallocateObjectProctor Proctor that automatically deallocates a managed object on destruction.
DeallocateObjectProctor_PtrType Metafunction yielding the pointer type used by DeallocateObjectProctor.
DeallocatorGuard Guard that unconditionally deallocates a managed memory block on destruction.
DeallocatorProctor Proctor that conditionally manages and deallocates a block of memory.
Default Provide access to the process-wide default and global allocators.
DefaultAllocatorGuard This class provides a scoped guard that temporarily replaces the process-wide default allocator.
Default_NewDeleteSetter Set the initial C++17 default resource to NewDeleteAllocator.
DeleteObjectProctor Proctor that conditionally deletes a managed object on destruction.
DeleteObjectProctor_PtrType Metafunction yielding the pointer type used by DeleteObjectProctor.
DeleterHelper This struct provides a namespace for helper functions used for deleting objects in various pools and allocators.
DeleterHelper_Helper Helper template for DeleterHelper dispatch by polymorphism.
DestructionUtil Utility functions that destroy elements of parameterized type TYPE.
DestructorGuard This class implements a guard that unconditionally destroys a managed object upon destruction by invoking the (managed) object's destructor.
DestructorProctor Proctor that conditionally manages and destroys an object.
ExceptionGuard Guard that verifies an object is unchanged if an exception is thrown.
HasAllocatorType Metafunction that yields whether TYPE has a nested C++11 allocator_type.
InfrequentDeleteBlockList Memory manager that allocates and manages a sequence of memory blocks.
IsStdAllocator Metafunction that yields whether TYPE meets C++11 allocator requirements.
IsStdAllocator_SizeType Component-private metafunction that yields the size type for TYPE.
MallocFreeAllocator This class provides direct access to the system-supplied (native) global std::malloc and std::free.
ManagedAllocator Protocol for allocators that support releasing all allocated memory.
ManagedPtr Smart pointer with sole ownership of a managed object and a possibly distinct target.
ManagedPtrDeleter In-core value-semantic class that stores a bound delete function.
ManagedPtrNilDeleter Utility providing a no-op deleter for managed pointers to stack objects.
ManagedPtrUtil Utility providing a no-op deleter for managed pointers to stack objects.
ManagedPtr_DefaultDeleter This struct provides a function-like managed pointer deleter that invokes delete with the passed pointer.
ManagedPtr_FactoryDeleter This utility provides a general deleter for factories that provide a deleteObject operation (e.g., bslma::Allocator, bdlma::Pool).
ManagedPtr_FactoryDeleterType Metafunction selecting the preferred factory deleter for ManagedPtr.
ManagedPtr_Members Type-agnostic container for the internal state of a managed pointer.
ManagedPtr_PairProxy This class is a simple aggregate that may be used to construct a bsl::pair object.
ManagedPtr_Ref Temporary reference enabling construction from temporary ManagedPtrs.
ManagedPtr_TraitConstraint This struct is an empty type that exists solely to enable constructor access to be constrained by type trait.
MemoryResourceImpSupport Namespace for functions that support implementing a memory resource.
MemoryResourceImpSupport_AlignedData Component-private maximally aligned struct holding an unsigned 64-bit integer.
NewDeleteAllocator Concrete allocator adapting global operator new and operator delete.
PointerUtil This struct provides a namespace for utility functions that perform low-level pointer manipulations.
RawDeleterGuard Guard that unconditionally deletes a managed object on destruction.
RawDeleterProctor Proctor that conditionally manages and deletes an object.
SequentialAllocator This class implements the ManagedAllocator protocol to provide a fast allocator of arbitrarily-sized blocks of memory.
SequentialPool This class implements a memory pool that dispenses arbitrarily-sized blocks of memory.
SharedPtrInplaceRep In-place SharedPtrRep implementation for a managed object of TYPE.
SharedPtrOutofplaceRep Out-of-place concrete implementation of the SharedPtrRep protocol.
SharedPtrOutofplaceRep_DeleterDiscriminator Metafunction that classifies a deleter's kind and C++ type.
SharedPtrOutofplaceRep_DeleterHelper This struct provides utility functions to apply a deleter to a shared object referred to by SharedPtrOutofplaceRep.
SharedPtrOutofplaceRep_DeleterType This struct enumerates four kinds of deleters, the first two are factory deleters, and the last two are function-like deleters.
SharedPtrOutofplaceRep_InitProctor Proctor that deletes a pointer if out-of-place rep construction fails.
SharedPtrRep Partially implemented shared pointer representation protocol.
StdTestAllocator An STL-compatible test allocator that forwards to a bslma::TestAllocator.
SuppressesImplicitConvertibilityWarnings Metafunction that reports whether convertibility deprecation warnings are suppressed for t_TYPE.
TestAllocator Concrete test allocator that tracks memory usage for testing.
TestAllocatorException This class defines an exception object for memory allocation operations. Objects of this class contain information about an allocation request.
TestAllocatorMonitor Mechanism that reports changes in a TestAllocator's statistics.
TestAllocatorStashedStatistics Saved TestAllocator statistics for later restoration.
TestAllocatorStatisticsGuard This mechanism provides scoped, localized statistics for a TestAllocator.
TestAllocator_BlockHeader Private header for a block of allocated memory managed by TestAllocator.
TestAllocator_Proxy Proxy for a test allocator used by exception-test macros.
TestAllocator_ProxyBase Common base class for TestAllocator_Proxy.
UsesBslmaAllocator Metafunction that is true_type if TYPE uses the bslma allocator idiom.
UsesBslmaAllocator_DeprecatedIf Empty helper whose check may emit a deprecation warning.
UsesBslmaAllocator_Sniff Metafunction that sniffs whether TYPE is convertible from bslma::Allocator *.

Type Aliases

NameDescription
AllocatorAdaptor Polymorphic wrapper around an STL-style allocator.

Functions

NameDescription
TestAllocator_getProxy Return, by value, a test allocator proxy for the specified parameterized allocator.
swap Efficiently exchange the values of the specified a and b objects. This function provides the no-throw exception-safety guarantee.
operator<< Write the state of ta to stream and return stream.
operator== Equality operators
operator!= Inequality operators

Variables

NameDescription
IsStdAllocator_v This template variable represents the result value of the bslma::IsStdAllocator meta-function.