18 #ifndef ION_BASE_STLALLOC_ALLOCSET_H_
19 #define ION_BASE_STLALLOC_ALLOCSET_H_
49 template <
typename T,
typename Compare = std::less<T> >
50 class AllocSet :
public std::set<T, Compare, StlAllocator<T> > {
53 typedef std::set<T, Compare, AllocType>
SetType;
62 template <
typename ContainerT>
64 :
SetType(from.begin(), from.end(), Compare(),
66 template <
typename ContainerT>
68 :
SetType(from.begin(), from.end(), Compare(),
69 AllocType(owner.GetNonNullAllocator())) {}
79 AllocType(owner.GetNonNullAllocator())) {}
85 #endif // ION_BASE_STLALLOC_ALLOCSET_H_
AllocSet(const Allocatable &owner)
StlAllocator is derived std::allocator class that allows an Ion Allocator to be used for STL containe...
AllocSet(const AllocatorPtr &alloc, const ContainerT &from)
These constructors can be used to copy from "STL iterables": anything that provides a pair of compati...
StlAllocator< T > AllocType
AllocSet(const Allocatable &owner, const ContainerT &from)
AllocationManager is a singleton class that is used to manage Allocators used to allocate Ion objects...
AllocSet(const AllocatorPtr &alloc, std::initializer_list< T > init)
These constructors allow AllocSet to be initialized using c++11's list initialization: AllocSet<int> ...
Allocatable is an abstract base class for classes whose memory is managed by an Allocator.
This class can be used in place of std::set to allow an Ion Allocator to be used for memory allocatio...
AllocSet(const AllocatorPtr &alloc)
AllocSet(const Allocatable &owner, std::initializer_list< T > init)
std::set< T, Compare, AllocType > SetType