Home | History | Annotate | Download | only in stl

Lines Matching refs:allocator

56 // Malloc-based allocator.  Typically slower than default alloc below.
86 // New-based allocator. Typically slower than default alloc below.
96 // Allocator adaptor to check size arguments for debugging.
98 // NDEBUG, but it's far better to just use the underlying allocator
145 // Default node allocator.
175 /* macro to convert the allocator for initialization
179 * not used implicitly to convert allocator parameter, so let us do it explicitly */
191 // Another allocator adaptor: _Alloc_traits. This serves two
193 // either SGI-style allocators or standard-conforming allocator.
270 class allocator //: public _AllocatorAux<_Tp>
271 /* A small helper struct to recognize STLport allocator implementation
274 : public __stlport_class<allocator<_Tp> >
286 typedef allocator<_Tp1> other;
289 allocator() _STLP_NOTHROW {}
291 template <class _Tp1> allocator(const allocator<_Tp1>&) _STLP_NOTHROW {}
293 allocator(const allocator<_Tp>&) _STLP_NOTHROW {}
295 allocator(__move_source<allocator<_Tp> > src) _STLP_NOTHROW {}
297 ~allocator() _STLP_NOTHROW {}
336 * This method do not have to be part of a user defined allocator implementation
359 void _M_swap_workaround(allocator<_Tp>& __other) {}
364 class _STLP_CLASS_DECLSPEC allocator<void> {
375 typedef allocator<_Tp1> other;
381 inline bool _STLP_CALL operator==(const allocator<_T1>&, const allocator<_T2>&) _STLP_NOTHROW
384 inline bool _STLP_CALL operator!=(const allocator<_T1>&, const allocator<_T2>&) _STLP_NOTHROW
388 _STLP_EXPORT_TEMPLATE_CLASS allocator<char>;
390 _STLP_EXPORT_TEMPLATE_CLASS allocator<wchar_t>;
393 _STLP_EXPORT_TEMPLATE_CLASS allocator<void*>;
402 typedef typename _IsSTLportClass<allocator<_Tp> >::_Ret _STLportAlloc;
404 enum { _Is = _IsSTLportClass<allocator<_Tp> >::_Is };
407 //The default allocator implementation which is recognize thanks to the
420 struct __type_traits<allocator<_Tp> > : _STLP_PRIV __alloc_type_traits<_Tp> {};
423 struct __type_traits<allocator<char> > : _STLP_PRIV __alloc_type_traits<char> {};
426 struct __type_traits<allocator<wchar_t> > : _STLP_PRIV __alloc_type_traits<wchar_t> {};
430 struct __type_traits<allocator<void*> > : _STLP_PRIV __alloc_type_traits<void*> {};
440 // The version for the default allocator, for rare occasion when we have partial spec w/o member template classes
442 struct _Alloc_traits<_Tp, allocator<_Tp1> > {
443 typedef allocator<_Tp1> _Orig;
444 typedef allocator<_Tp> allocator_type;
445 static allocator_type create_allocator(const allocator<_Tp1 >& __a)
461 inline allocator<_Tp2>& _STLP_CALL
462 __stl_alloc_rebind(allocator<_Tp1>& __a, const _Tp2*) { return (allocator<_Tp2>&)(__a); }
464 inline allocator<_Tp2> _STLP_CALL
465 __stl_alloc_create(const allocator<_Tp1>&, const _Tp2*) { return allocator<_Tp2>(); }
516 /* We need to define the following swap implementation for allocator with state
543 _Tp* allocate(size_type __n, size_type& __allocated_n, const __true_type& /*STLport allocator*/)
550 _Tp* allocate(size_type __n, size_type& __allocated_n, const __true_type& /*STLport allocator*/)
554 _Tp* allocate(size_type __n, size_type& __allocated_n, const __false_type& /*STLport allocator*/)
559 _STLP_EXPORT_TEMPLATE_CLASS _STLP_alloc_proxy<char*, char, allocator<char> >;
561 _STLP_EXPORT_TEMPLATE_CLASS _STLP_alloc_proxy<wchar_t*, wchar_t, allocator<wchar_t> >;
564 _STLP_EXPORT_TEMPLATE_CLASS _STLP_alloc_proxy<void**, void*, allocator<void*> >;