Home
last modified time | relevance | path

Searched refs:_M_impl (Results 1 – 15 of 15) sorted by relevance

/NextBSD/contrib/libstdc++/include/bits/
Dvector.tcc76 pointer __tmp = _M_allocate_and_copy(__n, this->_M_impl._M_start, in _GLIBCXX_BEGIN_NESTED_NAMESPACE()
77 this->_M_impl._M_finish); in _GLIBCXX_BEGIN_NESTED_NAMESPACE()
78 std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, in _GLIBCXX_BEGIN_NESTED_NAMESPACE()
80 _M_deallocate(this->_M_impl._M_start, in _GLIBCXX_BEGIN_NESTED_NAMESPACE()
81 this->_M_impl._M_end_of_storage in _GLIBCXX_BEGIN_NESTED_NAMESPACE()
82 - this->_M_impl._M_start); in _GLIBCXX_BEGIN_NESTED_NAMESPACE()
83 this->_M_impl._M_start = __tmp; in _GLIBCXX_BEGIN_NESTED_NAMESPACE()
84 this->_M_impl._M_finish = __tmp + __old_size; in _GLIBCXX_BEGIN_NESTED_NAMESPACE()
85 this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; in _GLIBCXX_BEGIN_NESTED_NAMESPACE()
95 if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage in insert()
[all …]
Ddeque.tcc77 this->_M_impl._M_start)); in _GLIBCXX_BEGIN_NESTED_NAMESPACE()
81 std::copy(__x.begin(), __mid, this->_M_impl._M_start); in _GLIBCXX_BEGIN_NESTED_NAMESPACE()
82 insert(this->_M_impl._M_finish, __mid, __x.end()); in _GLIBCXX_BEGIN_NESTED_NAMESPACE()
93 if (__position._M_cur == this->_M_impl._M_start._M_cur) in insert()
96 return this->_M_impl._M_start; in insert()
98 else if (__position._M_cur == this->_M_impl._M_finish._M_cur) in insert()
101 iterator __tmp = this->_M_impl._M_finish; in insert()
183 if (__pos._M_cur == this->_M_impl._M_start._M_cur) in _M_fill_insert()
188 std::__uninitialized_fill_a(__new_start, this->_M_impl._M_start, in _M_fill_insert()
190 this->_M_impl._M_start = __new_start; in _M_fill_insert()
[all …]
Dstl_vector.h102 { return *static_cast<_Tp_alloc_type*>(&this->_M_impl); } in _M_get_Tp_allocator()
106 { return *static_cast<const _Tp_alloc_type*>(&this->_M_impl); } in _M_get_Tp_allocator()
113 : _M_impl() { } in _Vector_base()
116 : _M_impl(__a) in _Vector_base()
120 : _M_impl(__a) in _Vector_base()
124 this->_M_impl._M_start = this->_M_allocate(__n); in _Vector_base()
125 this->_M_impl._M_finish = this->_M_impl._M_start; in _Vector_base()
126 this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; in _Vector_base()
131 { _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage in ~_Vector_base()
132 - this->_M_impl._M_start); } in ~_Vector_base()
[all …]
Dstl_deque.h384 : _M_impl() in _Deque_base()
388 : _M_impl(__a) in _Deque_base()
392 : _M_impl(__a) in _Deque_base()
426 { return *static_cast<_Tp_alloc_type*>(&this->_M_impl); } in _M_get_Tp_allocator()
430 { return *static_cast<const _Tp_alloc_type*>(&this->_M_impl); } in _M_get_Tp_allocator()
439 return _M_impl._Tp_alloc_type::allocate(__deque_buf_size(sizeof(_Tp))); in _M_allocate_node()
445 _M_impl._Tp_alloc_type::deallocate(__p, __deque_buf_size(sizeof(_Tp))); in _M_deallocate_node()
462 _Deque_impl _M_impl; variable
469 if (this->_M_impl._M_map) in ~_Deque_base()
471 _M_destroy_nodes(this->_M_impl._M_start._M_node, in ~_Deque_base()
[all …]
Dstl_bvector.h403 { return *static_cast<_Bit_alloc_type*>(&this->_M_impl); } in _M_get_Bit_allocator()
407 { return *static_cast<const _Bit_alloc_type*>(&this->_M_impl); } in _M_get_Bit_allocator()
414 : _M_impl() { } in _Bvector_base()
417 : _M_impl(__a) { } in _Bvector_base()
423 _Bvector_impl _M_impl;
427 { return _M_impl.allocate((__n + int(_S_word_bit) - 1) in _M_allocate()
433 if (_M_impl._M_start._M_p) in _M_deallocate()
434 _M_impl.deallocate(_M_impl._M_start._M_p, in _M_deallocate()
435 _M_impl._M_end_of_storage - _M_impl._M_start._M_p); in _M_deallocate()
505 std::fill(this->_M_impl._M_start._M_p, this->_M_impl._M_end_of_storage, in _GLIBCXX_BEGIN_NESTED_NAMESPACE()
[all …]
Dstl_tree.h356 { return *static_cast<_Node_allocator*>(&this->_M_impl); } in _M_get_Node_allocator()
360 { return *static_cast<const _Node_allocator*>(&this->_M_impl); } in _M_get_Node_allocator()
369 { return _M_impl._Node_allocator::allocate(1); } in _M_get_node()
373 { _M_impl._Node_allocator::deallocate(__p, 1); } in _M_put_node()
466 _Rb_tree_impl<_Compare> _M_impl;
471 { return this->_M_impl._M_header._M_parent; }
475 { return this->_M_impl._M_header._M_parent; }
479 { return this->_M_impl._M_header._M_left; }
483 { return this->_M_impl._M_header._M_left; }
487 { return this->_M_impl._M_header._M_right; }
[all …]
Dstl_list.h317 _List_impl _M_impl; variable
321 { return _M_impl._Node_alloc_type::allocate(1); } in _M_get_node()
325 { _M_impl._Node_alloc_type::deallocate(__p, 1); } in _M_put_node()
332 { return *static_cast<_Node_alloc_type*>(&this->_M_impl); } in _M_get_Node_allocator()
336 { return *static_cast<const _Node_alloc_type*>(&this->_M_impl); } in _M_get_Node_allocator()
347 : _M_impl() in _List_base()
351 : _M_impl(__a) in _List_base()
364 this->_M_impl._M_node._M_next = &this->_M_impl._M_node; in _M_init()
365 this->_M_impl._M_node._M_prev = &this->_M_impl._M_node; in _M_init()
444 using _Base::_M_impl;
[all …]
Dlist.tcc73 _Node* __cur = static_cast<_Node*>(this->_M_impl._M_node._M_next); in _GLIBCXX_BEGIN_NESTED_NAMESPACE()
74 while (__cur != &this->_M_impl._M_node) in _GLIBCXX_BEGIN_NESTED_NAMESPACE()
274 if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node in sort()
275 && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) in sort()
351 if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node in sort()
352 && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) in sort()
Dlocale_classes.h285 _Impl* _M_impl; in _GLIBCXX_BEGIN_NAMESPACE()
567 _M_impl = new _Impl(*__other._M_impl, 1); in locale()
570 { _M_impl->_M_install_facet(&_Facet::id, __f); } in locale()
573 _M_impl->_M_remove_reference(); in locale()
576 delete [] _M_impl->_M_names[0]; in locale()
577 _M_impl->_M_names[0] = 0; // Unnamed. in locale()
Dlocale_facets.tcc53 _Impl* __tmp = new _Impl(*_M_impl, 1); in _GLIBCXX_BEGIN_NAMESPACE()
56 __tmp->_M_replace_facet(__other._M_impl, &_Facet::id); in _GLIBCXX_BEGIN_NAMESPACE()
93 const locale::facet** __facets = __loc._M_impl->_M_facets; in has_facet()
94 return (__i < __loc._M_impl->_M_facets_size && __facets[__i]); in has_facet()
115 const locale::facet** __facets = __loc._M_impl->_M_facets; in use_facet()
116 if (!(__i < __loc._M_impl->_M_facets_size && __facets[__i])) in use_facet()
139 const locale::facet** __caches = __loc._M_impl->_M_caches; in operator ()()
153 __loc._M_impl->_M_install_cache(__tmp, __i); in operator ()()
166 const locale::facet** __caches = __loc._M_impl->_M_caches; in operator ()()
180 __loc._M_impl->_M_install_cache(__tmp, __i); in operator ()()
/NextBSD/contrib/libstdc++/src/
Dlocale.cc78 : _M_impl(__other._M_impl) in locale()
79 { _M_impl->_M_add_reference(); } in locale()
84 locale::locale(_Impl* __ip) throw() : _M_impl(__ip) in locale()
88 { _M_impl->_M_remove_reference(); } in ~locale()
98 if (_M_impl == __rhs._M_impl) in operator ==()
100 else if (!_M_impl->_M_names[0] || !__rhs._M_impl->_M_names[0] in operator ==()
101 || std::strcmp(_M_impl->_M_names[0], in operator ==()
102 __rhs._M_impl->_M_names[0]) != 0) in operator ==()
104 else if (!_M_impl->_M_names[1] && !__rhs._M_impl->_M_names[1]) in operator ==()
114 __other._M_impl->_M_add_reference(); in operator =()
[all …]
Dlocalename.cc37 locale::locale(const char* __s) : _M_impl(0) in locale()
43 (_M_impl = _S_classic)->_M_add_reference(); in locale()
45 _M_impl = new _Impl(__s, 1); in locale()
55 (_M_impl = _S_classic)->_M_add_reference(); in locale()
57 _M_impl = new _Impl(__env, 1); in locale()
131 _M_impl = new _Impl(__str.c_str(), 1); in locale()
136 (_M_impl = _S_classic)->_M_add_reference(); in locale()
138 _M_impl = new _Impl(__lang.c_str(), 1); in locale()
147 : _M_impl(0) in locale()
157 : _M_impl(0) in locale()
[all …]
Dctype.cc58 const locale::_Impl* __tmp = __loc._M_impl; in use_facet()
68 const locale::_Impl* __tmp = __loc._M_impl; in use_facet()
Dlocale_init.cc212 locale::locale() throw() : _M_impl(0) in _GLIBCXX_BEGIN_NAMESPACE()
217 _M_impl = _S_global; in _GLIBCXX_BEGIN_NAMESPACE()
228 __other._M_impl->_M_add_reference(); in global()
229 _S_global = __other._M_impl; in global()
/NextBSD/contrib/libstdc++/
DChangeLog-20043665 Optimize locale::_M_impl->_M_names for the most common cases:
3833 * include/bits/stl_bvector.h: Use _M_impl._M_start.
3902 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
4181 _M_key_compare as _M_impl._M_key_compare(). The other data members
4182 (*) can be referenced to as _M_impl.(*), where
4203 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
4212 _M_impl.*.
4226 _M_impl.*.