Template Class TypedAllocator¶
Defined in File TypedAllocator.hpp
Class Documentation¶
-
template<typename
T
>
classumpire
::
TypedAllocator
¶ Allocator for objects of type T.
This class is an adaptor that allows using an Allocator to allocate objects of type T. You can use this class as an allocator for STL containers like std::vector.
Public Functions
-
TypedAllocator
(Allocator allocator)¶ Construct a new TypedAllocator that will use allocator to allocate data.
- Parameters
allocator
: Allocator to use for allocating memory.
-
template<typename
U
>TypedAllocator
(const TypedAllocator<U> &other)¶
Friends
- friend class TypedAllocator
-