Lines Matching refs:__n
75 _Tp* allocate(size_t __n) {
76 if (__n > allocator_traits<allocator>::max_size(*this))
80 return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp)));
82 return static_cast<_Tp*>(_VSTD::__libcpp_allocate(__n * sizeof(_Tp), _LIBCPP_ALIGNOF(_Tp)));
87 void deallocate(_Tp* __p, size_t __n) _NOEXCEPT {
91 _VSTD::__libcpp_deallocate((void*)__p, __n * sizeof(_Tp), _LIBCPP_ALIGNOF(_Tp));
117 _Tp* allocate(size_t __n, const void*) {
118 return allocate(__n);
156 const _Tp* allocate(size_t __n) {
157 if (__n > allocator_traits<allocator>::max_size(*this))
161 return static_cast<const _Tp*>(::operator new(__n * sizeof(_Tp)));
163 return static_cast<const _Tp*>(_VSTD::__libcpp_allocate(__n * sizeof(_Tp), _LIBCPP_ALIGNOF(_Tp)));
168 void deallocate(const _Tp* __p, size_t __n) {
172 _VSTD::__libcpp_deallocate((void*) const_cast<_Tp *>(__p), __n * sizeof(_Tp), _LIBCPP_ALIGNOF(_Tp));
194 const _Tp* allocate(size_t __n, const void*) {
195 return allocate(__n);