19 #ifndef INCLUDED_RTL_ALLOCATOR_HXX
20 #define INCLUDED_RTL_ALLOCATOR_HXX
48 typedef const T* const_pointer;
50 typedef const T& const_reference;
51 typedef ::std::size_t size_type;
52 typedef ::std::ptrdiff_t difference_type;
58 typedef Allocator<U> other;
62 pointer address (reference value)
const
68 const_pointer address (const_reference value)
const
93 return size_type(-1)/
sizeof(T);
119 return reinterpret_cast<pointer
>(
130 #if HAVE_CXX11_PERFECT_FORWARDING && !defined(_LIBCPP_VERSION)
131 template<
typename... Args >
132 void construct (pointer p, Args &&... value)
134 new ((
void*)p)T(std::forward< Args >(value)...);
137 void construct (pointer p,
const T& value)
139 new ((
void*)p)T(value);
144 void destroy (pointer p)
156 template<
class T,
class U>
inline bool operator ==(
163 template<
class T,
class U>
sal_Bool operator!=(const Any &rAny, const C &value)
Template unequality operator: compares set value of left side any to right side value.
Definition: Any.hxx:565
#define SAL_UNUSED_PARAMETER
Annotate unused but required C++ function parameters.
Definition: types.h:570
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
sal_Bool operator==(const TTimeValue &rTimeA, const TTimeValue &rTimeB)
Definition: timer.hxx:118
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
#define SAL_THROW(exc)
Definition of function throw clause macros.
Definition: types.h:358