37 template <
typename T2>
55 return &mAllocator == &inRHS.mAllocator;
60 return &mAllocator != &inRHS.mAllocator;
64 template <
typename T2>
unsigned int uint
Definition Core.h:446
#define JPH_NAMESPACE_END
Definition Core.h:379
#define JPH_NAMESPACE_BEGIN
Definition Core.h:373
STL allocator that wraps around TempAllocator.
Definition STLTempAllocator.h:14
std::false_type is_always_equal
The allocator is not stateless (depends on the temp allocator)
Definition STLTempAllocator.h:31
T * pointer
Pointer to type.
Definition STLTempAllocator.h:19
T & reference
Definition STLTempAllocator.h:24
bool operator!=(const STLTempAllocator< T > &inRHS) const
Definition STLTempAllocator.h:58
ptrdiff_t difference_type
Definition STLTempAllocator.h:28
STLTempAllocator(const STLTempAllocator< T2 > &inRHS)
Constructor from other allocator.
Definition STLTempAllocator.h:38
pointer allocate(size_type inN)
Allocate memory.
Definition STLTempAllocator.h:41
STLTempAllocator(TempAllocator &inAllocator)
Constructor.
Definition STLTempAllocator.h:34
const T & const_reference
Definition STLTempAllocator.h:25
const T * const_pointer
Definition STLTempAllocator.h:20
void deallocate(pointer inPointer, size_type inN)
Free memory.
Definition STLTempAllocator.h:47
size_t size_type
Definition STLTempAllocator.h:27
TempAllocator & GetAllocator() const
Get our temp allocator.
Definition STLTempAllocator.h:71
T value_type
Definition STLTempAllocator.h:16
bool operator==(const STLTempAllocator< T > &inRHS) const
Allocators are not-stateless, assume if allocator address matches that the allocators are the same.
Definition STLTempAllocator.h:53
Definition TempAllocator.h:16
virtual void Free(void *inAddress, uint inSize)=0
Frees inSize bytes of memory located at inAddress.
virtual void * Allocate(uint inSize)=0
Allocates inSize bytes of memory, returned memory address must be JPH_RVECTOR_ALIGNMENT byte aligned.
Converting to allocator for other type.
Definition STLTempAllocator.h:66