34 const_pointer
address (const_reference value)
const {
54 return std::numeric_limits<std::size_t>::max() /
sizeof(T);
58 pointer
allocate (size_type num,
const void* = 0) {
61 std::cerr <<
"allocate " << num <<
" element(s)" 62 <<
" of size " <<
sizeof(T) << std::endl;
66 std::cerr <<
" allocated at: " << (
void*)ret << std::endl;
74 new((
void*)p)T(value);
88 std::cerr <<
"deallocate " << num <<
" element(s)" 89 <<
" of size " <<
sizeof(T)
90 <<
" at: " << (
void*)p << std::endl;
97 template <
class T1,
class T2>
102 template <
class T1,
class T2>
bool operator!=(const MyAlloc< T1 > &, const MyAlloc< T2 > &)
MyAlloc(const MyAlloc< U > &)
void deallocate(pointer p, size_type)
bool operator==(const MyAlloc< T1 > &, const MyAlloc< T2 > &)
pointer allocate(size_type num, const void *=0)
const_pointer address(const_reference value) const
pointer address(reference value) const
std::ptrdiff_t difference_type
size_type max_size() const
const T & const_reference
void * MyAllocate(std::size_t)
Lexical analyzer for CIntSwissKnife.
void construct(pointer p, const T &value)
Platform-dependent type definitions.