Go to the documentation of this file.
7 #ifndef MYGUI_CUSTOM_ALLOCATOR_H_
8 #define MYGUI_CUSTOM_ALLOCATOR_H_
14 #include <OgrePrerequisites.h>
16 #if OGRE_VERSION < MYGUI_DEFINE_VERSION(1, 6, 0)
17 #include <OgreMemoryManager.h>
18 #include <OgreNoMemoryMacros.h>
64 return reinterpret_cast<pointer>(::
operator new (cnt *
sizeof (T)));
68 ::operator
delete (p);
74 return (std::numeric_limits<size_type>::max)() /
sizeof(T);
99 #if OGRE_VERSION < MYGUI_DEFINE_VERSION(1, 6, 0)
100 #include <OgreMemoryMacros.h>
103 #endif // MYGUI_CUSTOM_ALLOCATOR_H_
const typedef value_type & const_reference
size_type max_size() const
bool operator==(Allocator const &)
std::ptrdiff_t difference_type
Allocator(Allocator< U > const &)
bool operator!=(Allocator const &a)
const_pointer address(const_reference r)
const typedef value_type * const_pointer
pointer address(reference r)
void deallocate(pointer p, size_type)
pointer allocate(size_type cnt, typename std::allocator< void >::const_pointer=0)
void construct(pointer p, const T &t)