29#ifndef RW_ALLOCATOR_INCLUDED
30#define RW_ALLOCATOR_INCLUDED
65 _RWSTD_SIZE_T = _RWSTD_SIZE_MAX);
73 allocate (_RWSTD_SIZE_T ,
87 max_size (_RWSTD_SIZE_T = 1);
101 int id ()
const {
return id_; }
104 void reset_call_counters ();
107 static const char* func_name (
MemFun);
119 _RWSTD_SIZE_T n_calls_ [n_funs];
123 _RWSTD_SIZE_T n_throws_ [n_funs];
127 _RWSTD_SIZE_T throw_at_calls_ [n_funs];
147template <
class T,
class Types = AllocTypes<T> >
253 _RWSTD_SIZE_T = _RWSTD_SIZE_MAX);
262template <
class charT>
266 _RWSTD_SIZE_T expect_blocks = 0,
267 _RWSTD_SIZE_T expect_bytes = _RWSTD_SIZE_MAX)
281template <
class charT,
class Types>
285 _RWSTD_SIZE_T expect_blocks = 0,
286 _RWSTD_SIZE_T expect_bytes = _RWSTD_SIZE_MAX)
#define _RWSTD_STATIC_CAST(T, x)
#define _RWSTD_NAMESPACE(name)
_TEST_EXPORT void rw_check_leaks(const SharedAlloc *=0, int=0, _RWSTD_SIZE_T=0, _RWSTD_SIZE_T=_RWSTD_SIZE_MAX)
_RWSTD_PTRDIFF_T difference_type
const T & const_reference
virtual void deallocate(void *, _RWSTD_SIZE_T, _RWSTD_SIZE_T)
virtual void funcall(MemFun, const SharedAlloc *=0)
_RWSTD_SIZE_T max_blocks_
virtual _RWSTD_SIZE_T max_size(_RWSTD_SIZE_T=1)
virtual void * allocate(_RWSTD_SIZE_T, _RWSTD_SIZE_T, const void *)
UserAlloc(const UserAlloc< U > &rhs) _THROWS(())
size_type max_size() const _THROWS(())
const_pointer address(const_reference ref) const
bool operator!=(const UserAlloc &rhs) const
Types::size_type size_type
void operator=(const UserAlloc< U > &rhs)
UserAlloc(const UserAlloc &rhs) _THROWS(())
UserAlloc(SharedAlloc *pal=0) _THROWS(())
void destroy(pointer ptr)
Types::difference_type difference_type
void deallocate(pointer ptr, size_type nelems)
void construct(pointer ptr, const_reference val)
Types::const_pointer const_pointer
Types::reference reference
Types::const_reference const_reference
pointer allocate(size_type nelems, const void *hint=0)
pointer address(reference ref) const
bool operator==(const UserAlloc &rhs) const