Lines Matching refs:_Alloc

227 template<class _Tp, class _Alloc>
232 { return 0 == __n ? 0 : (_Tp*) _Alloc::allocate(__n * sizeof (_Tp)); } in allocate()
234 { return (_Tp*) _Alloc::allocate(sizeof (_Tp)); } in allocate()
236 { if (0 != __n) _Alloc::deallocate(__p, __n * sizeof (_Tp)); } in deallocate()
238 { _Alloc::deallocate(__p, sizeof (_Tp)); } in deallocate()
246 template <class _Alloc>
259 char* __result = (char*)_Alloc::allocate(__n + _S_extra); in allocate()
268 _Alloc::deallocate(__real_p, __n + _S_extra); in deallocate()
276 _Alloc::reallocate(__real_p, __old_sz + _S_extra, __new_sz + _S_extra); in reallocate()
734 typedef alloc _Alloc; // The underlying allocator. typedef
759 return __n != 0 ? static_cast<_Tp*>(_Alloc::allocate(__n * sizeof(_Tp)))
765 { _Alloc::deallocate(__p, __n * sizeof(_Tp)); } in deallocate()
807 template <class _Tp, class _Alloc>
809 _Alloc __underlying_alloc;
820 typedef __allocator<_Tp1, _Alloc> other;
827 __allocator(const __allocator<_Tp1, _Alloc>& __a) __STL_NOTHROW in __allocator()
852 template <class _Alloc>
853 class __allocator<void, _Alloc> {
861 typedef __allocator<_Tp1, _Alloc> other;
865 template <class _Tp, class _Alloc>
866 inline bool operator==(const __allocator<_Tp, _Alloc>& __a1,
867 const __allocator<_Tp, _Alloc>& __a2)
873 template <class _Tp, class _Alloc>
874 inline bool operator!=(const __allocator<_Tp, _Alloc>& __a1,
875 const __allocator<_Tp, _Alloc>& __a2)
919 template <class _Alloc>
920 inline bool operator==(const debug_alloc<_Alloc>&,
921 const debug_alloc<_Alloc>&) {
926 template <class _Alloc>
927 inline bool operator!=(const debug_alloc<_Alloc>&,
928 const debug_alloc<_Alloc>&) {
1004 template <class _Tp, class _Alloc>
1005 struct _Alloc_traits<_Tp, debug_alloc<_Alloc> >
1008 typedef simple_alloc<_Tp, debug_alloc<_Alloc> > _Alloc_type;
1009 typedef __allocator<_Tp, debug_alloc<_Alloc> > allocator_type;
1038 template <class _Tp, class _Tp1, class _Alloc>
1039 struct _Alloc_traits<_Tp, __allocator<_Tp1, debug_alloc<_Alloc> > >
1042 typedef simple_alloc<_Tp, debug_alloc<_Alloc> > _Alloc_type;
1043 typedef __allocator<_Tp, debug_alloc<_Alloc> > allocator_type;