25 #ifndef _VARIANT_ALLOCATOR_H_ 26 #define _VARIANT_ALLOCATOR_H_ 29 #include "bcap_core/dn_common.h" 48 pointer
allocate(size_type num,
const void* hint = 0)
50 return (pointer)( ::operator
new(num *
sizeof(T)));
64 const_pointer
address(const_reference value)
const 76 ::operator
delete((
void*)p);
81 return std::numeric_limits<size_t>::max() /
sizeof(T);
void deallocate(pointer p, size_type n)
ptrdiff_t difference_type
void construct(pointer p, const T &value)
pointer address(reference value) const
VariantAllocator< U > other
void VariantClear(VARIANT *pvarg)
const T & const_reference
const_pointer address(const_reference value) const
void VariantInit(VARIANT *pvarg)
_DN_EXP_COMMON HRESULT VariantCopy(VARIANT *pvargDest, const VARIANT *pvargSrc)
size_type max_size() const
pointer allocate(size_type num, const void *hint=0)