Home
last modified time | relevance | path

Searched refs:__new_size (Results 1 – 25 of 26) sorted by relevance

12

/dragonfly/contrib/gcc-8.0/libstdc++-v3/include/bits/
Dlist.tcc176 _M_resize_pos(size_type& __new_size) const in _M_resize_pos()
181 if (__new_size < __len) in _M_resize_pos()
183 if (__new_size <= __len / 2) in _M_resize_pos()
186 std::advance(__i, __new_size); in _M_resize_pos()
191 ptrdiff_t __num_erase = __len - __new_size; in _M_resize_pos()
194 __new_size = 0; in _M_resize_pos()
201 for (__i = begin(); __i != end() && __len < __new_size; ++__i, ++__len) in _M_resize_pos()
204 __new_size -= __len; in _M_resize_pos()
231 resize(size_type __new_size) in resize() argument
233 const_iterator __i = _M_resize_pos(__new_size); in resize()
[all …]
Dstl_vector.h824 resize(size_type __new_size) in _GLIBCXX_VISIBILITY()
826 if (__new_size > size()) in _GLIBCXX_VISIBILITY()
827 _M_default_append(__new_size - size()); in _GLIBCXX_VISIBILITY()
828 else if (__new_size < size()) in _GLIBCXX_VISIBILITY()
829 _M_erase_at_end(this->_M_impl._M_start + __new_size); in _GLIBCXX_VISIBILITY()
844 resize(size_type __new_size, const value_type& __x) in _GLIBCXX_VISIBILITY()
846 if (__new_size > size()) in _GLIBCXX_VISIBILITY()
847 _M_fill_insert(end(), __new_size - size(), __x); in _GLIBCXX_VISIBILITY()
848 else if (__new_size < size()) in _GLIBCXX_VISIBILITY()
849 _M_erase_at_end(this->_M_impl._M_start + __new_size); in _GLIBCXX_VISIBILITY()
[all …]
Dstl_deque.h1300 resize(size_type __new_size) in _GLIBCXX_VISIBILITY()
1303 if (__new_size > __len) in _GLIBCXX_VISIBILITY()
1304 _M_default_append(__new_size - __len); in _GLIBCXX_VISIBILITY()
1305 else if (__new_size < __len) in _GLIBCXX_VISIBILITY()
1307 + difference_type(__new_size)); in _GLIBCXX_VISIBILITY()
1322 resize(size_type __new_size, const value_type& __x) in _GLIBCXX_VISIBILITY()
1325 if (__new_size > __len) in _GLIBCXX_VISIBILITY()
1326 _M_fill_insert(this->_M_impl._M_finish, __new_size - __len, __x); in _GLIBCXX_VISIBILITY()
1327 else if (__new_size < __len) in _GLIBCXX_VISIBILITY()
1329 + difference_type(__new_size)); in _GLIBCXX_VISIBILITY()
[all …]
Dbasic_string.tcc399 const size_type __new_size = __old_size + __n2 - __n1; in _M_replace_aux() local
401 if (__new_size <= this->capacity()) in _M_replace_aux()
415 this->_M_set_length(__new_size); in _M_replace_aux()
428 const size_type __new_size = __old_size + __len2 - __len1; in _M_replace() local
430 if (__new_size <= this->capacity()) in _M_replace()
468 this->_M_set_length(__new_size); in _M_replace()
922 const size_type __new_size = __old_size + __len2 - __len1;
925 if (__new_size > this->capacity() || _M_rep()->_M_is_shared())
929 _Rep* __r = _Rep::_S_create(__new_size, this->capacity(), __a);
946 _M_rep()->_M_set_length_and_sharable(__new_size);
Dstl_bvector.h1057 resize(size_type __new_size, bool __x = bool()) in _GLIBCXX_VISIBILITY()
1059 if (__new_size < size()) in _GLIBCXX_VISIBILITY()
1060 _M_erase_at_end(begin() + difference_type(__new_size)); in _GLIBCXX_VISIBILITY()
1062 insert(end(), __new_size - size(), __x); in _GLIBCXX_VISIBILITY()
Dstl_list.h1087 resize(size_type __new_size); in _GLIBCXX_VISIBILITY()
1100 resize(size_type __new_size, const value_type& __x); in _GLIBCXX_VISIBILITY()
1113 resize(size_type __new_size, value_type __x = value_type()); in _GLIBCXX_VISIBILITY()
1936 _M_resize_pos(size_type& __new_size) const; in _GLIBCXX_VISIBILITY()
/dragonfly/contrib/gcc-4.7/libstdc++-v3/include/bits/
Dlist.tcc140 resize(size_type __new_size) in resize() argument
144 for (; __i != end() && __len < __new_size; ++__i, ++__len) in resize()
146 if (__len == __new_size) in resize()
149 _M_default_append(__new_size - __len); in resize()
155 resize(size_type __new_size, const value_type& __x) in resize() argument
159 for (; __i != end() && __len < __new_size; ++__i, ++__len) in resize()
161 if (__len == __new_size) in resize()
164 insert(end(), __new_size - __len, __x); in resize()
170 resize(size_type __new_size, value_type __x) in resize() argument
174 for (; __i != end() && __len < __new_size; ++__i, ++__len) in resize()
[all …]
Dstl_vector.h644 resize(size_type __new_size) in _GLIBCXX_VISIBILITY()
646 if (__new_size > size()) in _GLIBCXX_VISIBILITY()
647 _M_default_append(__new_size - size()); in _GLIBCXX_VISIBILITY()
648 else if (__new_size < size()) in _GLIBCXX_VISIBILITY()
649 _M_erase_at_end(this->_M_impl._M_start + __new_size); in _GLIBCXX_VISIBILITY()
664 resize(size_type __new_size, const value_type& __x) in _GLIBCXX_VISIBILITY()
666 if (__new_size > size()) in _GLIBCXX_VISIBILITY()
667 insert(end(), __new_size - size(), __x); in _GLIBCXX_VISIBILITY()
668 else if (__new_size < size()) in _GLIBCXX_VISIBILITY()
669 _M_erase_at_end(this->_M_impl._M_start + __new_size); in _GLIBCXX_VISIBILITY()
[all …]
Dstl_deque.h1142 resize(size_type __new_size) in _GLIBCXX_VISIBILITY()
1145 if (__new_size > __len) in _GLIBCXX_VISIBILITY()
1146 _M_default_append(__new_size - __len); in _GLIBCXX_VISIBILITY()
1147 else if (__new_size < __len) in _GLIBCXX_VISIBILITY()
1149 + difference_type(__new_size)); in _GLIBCXX_VISIBILITY()
1164 resize(size_type __new_size, const value_type& __x) in _GLIBCXX_VISIBILITY()
1167 if (__new_size > __len) in _GLIBCXX_VISIBILITY()
1168 insert(this->_M_impl._M_finish, __new_size - __len, __x); in _GLIBCXX_VISIBILITY()
1169 else if (__new_size < __len) in _GLIBCXX_VISIBILITY()
1171 + difference_type(__new_size)); in _GLIBCXX_VISIBILITY()
[all …]
Dstl_bvector.h849 resize(size_type __new_size, bool __x = bool()) in _GLIBCXX_VISIBILITY()
851 if (__new_size < size()) in _GLIBCXX_VISIBILITY()
852 _M_erase_at_end(begin() + difference_type(__new_size)); in _GLIBCXX_VISIBILITY()
854 insert(end(), __new_size - size(), __x); in _GLIBCXX_VISIBILITY()
Dstl_list.h873 resize(size_type __new_size); in _GLIBCXX_VISIBILITY()
886 resize(size_type __new_size, const value_type& __x); in _GLIBCXX_VISIBILITY()
899 resize(size_type __new_size, value_type __x = value_type()); in _GLIBCXX_VISIBILITY()
/dragonfly/contrib/gcc-4.7/libstdc++-v3/src/c++98/
Dlocale.cc323 const size_t __new_size = __index + 4; in _M_install_facet() local
328 __newf = new const facet*[__new_size]; in _M_install_facet()
331 for (size_t __l = _M_facets_size; __l < __new_size; ++__l) in _M_install_facet()
339 __newc = new const facet*[__new_size]; in _M_install_facet()
348 for (size_t __k = _M_facets_size; __k < __new_size; ++__k) in _M_install_facet()
351 _M_facets_size = __new_size; in _M_install_facet()
/dragonfly/contrib/gcc-8.0/libstdc++-v3/src/c++98/
Dlocale.cc322 const size_t __new_size = __index + 4; in _M_install_facet() local
327 __newf = new const facet*[__new_size]; in _M_install_facet()
330 for (size_t __l = _M_facets_size; __l < __new_size; ++__l) in _M_install_facet()
338 __newc = new const facet*[__new_size]; in _M_install_facet()
347 for (size_t __k = _M_facets_size; __k < __new_size; ++__k) in _M_install_facet()
350 _M_facets_size = __new_size; in _M_install_facet()
/dragonfly/contrib/gcc-8.0/libstdc++-v3/include/profile/
Dunordered_base.h222 auto __new_size = _M_conjure().bucket_count(); in _GLIBCXX_VISIBILITY()
223 if (__old_size != __new_size) in _GLIBCXX_VISIBILITY()
224 __profcxx_hashtable_size_resize(_M_size_info, __old_size, __new_size); in _GLIBCXX_VISIBILITY()
Dvector499 void _M_profile_resize(size_type __old_size, size_type __new_size)
501 if (__old_size < __new_size)
504 this->size(), __new_size);
506 this->size(), __new_size);
/dragonfly/contrib/gcc-8.0/libstdc++-v3/include/ext/
Dvstring.tcc104 const size_type __new_size = __old_size + __n2 - __n1; in _M_replace_aux() local
106 if (__new_size <= this->capacity() && !this->_M_is_shared()) in _M_replace_aux()
120 this->_M_set_length(__new_size); in _M_replace_aux()
134 const size_type __new_size = __old_size + __len2 - __len1; in _M_replace() local
136 if (__new_size <= this->capacity() && !this->_M_is_shared()) in _M_replace()
174 this->_M_set_length(__new_size); in _M_replace()
Drc_string_base.h680 const size_type __new_size = _M_length() - __n; in _GLIBCXX_VISIBILITY() local
686 _Rep* __r = _Rep::_S_create(__new_size, _M_capacity(), in _GLIBCXX_VISIBILITY()
705 _M_rep()->_M_set_length(__new_size); in _GLIBCXX_VISIBILITY()
Dbitmap_allocator.h177 size_type __new_size = this->size() ? this->size() * 2 : 1; in _GLIBCXX_VISIBILITY() local
178 iterator __new_start = this->allocate(__new_size); in _GLIBCXX_VISIBILITY()
198 this->_M_end_of_storage = this->_M_start + __new_size; in _GLIBCXX_VISIBILITY()
/dragonfly/contrib/gcc-4.7/libstdc++-v3/include/ext/
Dvstring.tcc104 const size_type __new_size = __old_size + __n2 - __n1; in _M_replace_aux() local
106 if (__new_size <= this->capacity() && !this->_M_is_shared()) in _M_replace_aux()
120 this->_M_set_length(__new_size); in _M_replace_aux()
134 const size_type __new_size = __old_size + __len2 - __len1; in _M_replace() local
136 if (__new_size <= this->capacity() && !this->_M_is_shared()) in _M_replace()
174 this->_M_set_length(__new_size); in _M_replace()
Drc_string_base.h678 const size_type __new_size = _M_length() - __n; in _GLIBCXX_VISIBILITY() local
684 _Rep* __r = _Rep::_S_create(__new_size, _M_capacity(), in _GLIBCXX_VISIBILITY()
703 _M_rep()->_M_set_length(__new_size); in _GLIBCXX_VISIBILITY()
Dbitmap_allocator.h177 size_type __new_size = this->size() ? this->size() * 2 : 1; in _GLIBCXX_VISIBILITY() local
178 iterator __new_start = this->allocate(__new_size); in _GLIBCXX_VISIBILITY()
198 this->_M_end_of_storage = this->_M_start + __new_size; in _GLIBCXX_VISIBILITY()
/dragonfly/contrib/gcc-4.7/libstdc++-v3/include/profile/
Dunordered_set261 size_type __new_size = _Base::bucket_count();
262 if (__old_size != __new_size)
263 __profcxx_hashtable_resize(this, __old_size, __new_size);
523 size_type __new_size = _Base::bucket_count();
524 if (__old_size != __new_size)
525 __profcxx_hashtable_resize(this, __old_size, __new_size);
Dunordered_map292 size_type __new_size = _Base::bucket_count();
293 if (__old_size != __new_size)
294 __profcxx_hashtable_resize(this, __old_size, __new_size);
561 size_type __new_size = _Base::bucket_count();
562 if (__old_size != __new_size)
563 __profcxx_hashtable_resize(this, __old_size, __new_size);
Dvector454 size_type __new_size)
456 if (__old_size < __new_size) {
457 __profcxx_vector_resize(this, this->size(), __new_size);
458 __profcxx_vector_resize2(this, this->size(), __new_size);
/dragonfly/contrib/gcc-8.0/libstdc++-v3/include/experimental/
Dmemory_resource301 size_t __new_size = _S_aligned_size(__bytes,
304 return _Aligned_alloc(_M_alloc).allocate(__new_size);
311 size_t __new_size = _S_aligned_size(__bytes,
316 __new_size);

12