Home
last modified time | relevance | path

Searched refs:__size_ (Results 1 – 21 of 21) sorted by relevance

/freebsd/contrib/llvm-project/libcxx/include/__format/
H A Dbuffer.h82 __ptr_[__size_++] = __c; in push_back()
86 if (__size_ == __capacity_) in push_back()
111 std::copy_n(__str.data(), __n, std::addressof(__ptr_[__size_])); in __copy()
112 __size_ += __n; in __copy()
118 _LIBCPP_ASSERT_INTERNAL(__size_ == 0, "the buffer should be flushed by __flush_on_overflow"); in __copy()
122 std::copy_n(__first, __chunk, std::addressof(__ptr_[__size_])); in __copy()
123 __size_ = __chunk; in __copy()
142 std::transform(__first, __last, std::addressof(__ptr_[__size_]), std::move(__operation)); in __transform()
143 __size_ += __n; in __transform()
149 _LIBCPP_ASSERT_INTERNAL(__size_ in __transform()
[all...]
H A Dformat_args.h33 : __size_(sizeof...(_Args)) { in basic_format_args()
44 if (__id >= __size_) in get()
47 if (__format::__use_packed_format_arg_store(__size_)) in get()
53 _LIBCPP_HIDE_FROM_ABI size_t __size() const noexcept { return __size_; } in __size()
56 size_t __size_{0};
H A Dformatter_floating_point.h171 __size_ = __formatter::__float_buffer_size<_Fp>(__precision_);
172 if (__size_ > _Traits::__stack_buffer_size)
174 __begin_ = allocator<char>{}.allocate(__size_);
180 if (__size_ > _Traits::__stack_buffer_size)
181 allocator<char>{}.deallocate(__begin_, __size_);
187 _LIBCPP_HIDE_FROM_ABI char* end() const { return __begin_ + __size_; }
197 size_t __size_;
H A Dformat_functions.h120 : __args_(__args), __handles_(__handles), __size_(__size) {} in __compile_time_basic_format_context()
131 if (__id >= __size_) in arg()
137 if (__id >= __size_) in __handle()
148 size_t __size_; member
/freebsd/contrib/llvm-project/libcxx/src/
H A Dvalarray.cpp22 valarray<size_t> __indices(__size_.size()); in __init()
23 size_t __k = __size_.size() != 0; in __init()
24 for (size_t __i = 0; __i < __size_.size(); ++__i) in __init()
25 __k *= __size_[__i]; in __init()
33 if (++__indices[__i] < __size_[__i]) { in __init()
37 __1d_[__k] -= __stride_[__j] * (__size_[__j] - 1); in __init()
H A Dmemory_resource.cpp459 size_t newsize = (__initial_.__start_ != nullptr) ? (__initial_.__end_ - __initial_.__start_) : __initial_.__size_; in do_allocate()
/freebsd/contrib/llvm-project/libcxx/include/__memory/
H A Ddestruct_n.h25 size_t __size_;
29 for (size_t __i = 0; __i < __size_; ++__i, ++__p) in __process()
36 _LIBCPP_HIDE_FROM_ABI void __incr(false_type) _NOEXCEPT { ++__size_; } in __incr()
39 _LIBCPP_HIDE_FROM_ABI void __set(size_t __s, false_type) _NOEXCEPT { __size_ = __s; } in __incr()
43 _LIBCPP_HIDE_FROM_ABI explicit __destruct_n(size_t __s) _NOEXCEPT : __size_(__s) {} in __set()
H A Dbuiltin_new_allocator.h32 : __size_(__size), __align_(__align) {} in __builtin_new_deleter()
35 std::__libcpp_deallocate(__p, __size_, __align_); in operator()
39 size_t __size_;
/freebsd/contrib/llvm-project/libcxx/include/
H A Dinitializer_list60 size_t __size_;
64 __size_(__s) {}
75 …M_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 initializer_list() _NOEXCEPT : __begin_(nullptr), __size_(0) {}
77 …IBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 size_t size() const _NOEXCEPT { return __size_; }
81 …M_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 const _Ep* end() const _NOEXCEPT { return __begin_ + __size_; }
H A Dvector1882 size_type __size_;
1965 : __begin_(nullptr), __size_(0), __cap_alloc_(0, static_cast<__storage_allocator>(__a)) {
2037 …PP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 size_type size() const _NOEXCEPT { return __size_; }
2039 return __size_ == 0;
2046 …DE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 iterator end() _NOEXCEPT { return __make_iter(__size_); }
2048 return __make_iter(__size_);
2066 return __make_iter(__size_);
2082 …_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 reference back() { return __make_ref(__size_ -…
2083 …_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 const_reference back() const { return __make_ref(__size_ - 1); }
2108 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void pop_back() { --__size_; }
[all …]
H A Dspan430 _LIBCPP_HIDE_FROM_ABI constexpr span() noexcept : __data_{nullptr}, __size_{0} {}
435 : __data_{__il.begin()}, __size_{__il.size()} {}
443 : __data_{std::to_address(__first)}, __size_{__count} {}
447 : __data_(std::to_address(__first)), __size_(__last - __first) {
453 : __data_{__arr}, __size_{_Sz} {}
457 : __data_{__arr.data()}, __size_{_Sz} {}
462 : __data_{__arr.data()}, __size_{_Sz} {}
465 …_LIBCPP_HIDE_FROM_ABI constexpr span(_Range&& __r) : __data_(ranges::data(__r)), __size_{ranges::s…
469 : __data_{__other.data()}, __size_{__other.size()} {}
511 _LIBCPP_HIDE_FROM_ABI constexpr size_type size() const noexcept { return __size_; }
[all …]
H A Dstring_view304 …_LIBCPP_CONSTEXPR _LIBCPP_HIDE_FROM_ABI basic_string_view() _NOEXCEPT : __data_(nullptr), __size_(…
312 __size_(__len) {
329 : __data_(std::to_address(__begin)), __size_(__end - __begin) {
342 : __data_(ranges::data(__r)), __size_(ranges::size(__r)) {}
346 : __data_(__s), __size_(std::__char_traits_length_checked<_Traits>(__s)) {}
369 return const_iterator(__data_ + __size_);
390 _LIBCPP_CONSTEXPR _LIBCPP_HIDE_FROM_ABI size_type size() const _NOEXCEPT { return __size_; }
392 _LIBCPP_CONSTEXPR _LIBCPP_HIDE_FROM_ABI size_type length() const _NOEXCEPT { return __size_; }
398 …SCARD _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR bool empty() const _NOEXCEPT { return __size_ == 0; }
414 …SSERT_VALID_ELEMENT_ACCESS(!empty(), "string_view::back(): string is empty"), __data_[__size_ - 1];
[all …]
H A Dvalarray387 size_t __size_;
391 _LIBCPP_HIDE_FROM_ABI slice() : __start_(0), __size_(0), __stride_(0) {}
394 : __start_(__start), __size_(__size), __stride_(__stride) {}
397 _LIBCPP_HIDE_FROM_ABI size_t size() const { return __size_; }
625 size_t __size_;
629 : __expr_(__e), __start_(__sl.start()), __size_(__sl.size()), __stride_(__sl.stride()) {}
634 _LIBCPP_HIDE_FROM_ABI size_t size() const { return __size_; }
658 size_t __size_;
664 …_LIBCPP_HIDE_FROM_ABI __shift_expr(int __n, const _RmExpr& __e) : __expr_(__e), __size_(__e.size()…
667 __ul_ = ((__size_ - __n_) & ~__neg_n) | ((__n_ + 1) & __neg_n);
[all …]
H A Ddeque587 __compressed_pair<size_type, allocator_type> __size_;
592 : __start_(0), __size_(0, __default_init_tag()) {
606 : __map_(__pointer_allocator(__a)), __start_(0), __size_(0, __a) {
618 : __map_(__pointer_allocator(__a)), __start_(0), __size_(0, __a) {
632 : __map_(__pointer_allocator(__a)), __start_(0), __size_(0, __a) {
695 _LIBCPP_HIDE_FROM_ABI allocator_type& __alloc() _NOEXCEPT { return __size_.second(); }
696 _LIBCPP_HIDE_FROM_ABI const allocator_type& __alloc() const _NOEXCEPT { return __size_.second(); }
735 _LIBCPP_HIDE_FROM_ABI size_type& __size() _NOEXCEPT { return __size_.first(); }
736 _LIBCPP_HIDE_FROM_ABI const size_type& __size() const _NOEXCEPT { return __size_.first(); }
1256 deque<_Tp, _Allocator>::deque(size_type __n) : __start_(0), __size_(0, __default_init_tag()) {
[all …]
H A D__bit_reference600 difference_type __size_;
606 …E_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 explicit __bit_array(difference_type __s) : __size_(__s) {
616 …return iterator(pointer_traits<__storage_pointer>::pointer_to(__word_[0]) + __size_ / __bits_per_w…
617 static_cast<unsigned>(__size_ % __bits_per_word));
H A Dstring846 size_type __size_;
856 unsigned char __size_ : 7;
896 size_type __size_;
905 unsigned char __size_ : 7;
1955 __r_.first().__s.__size_ = __s;
1962 return __r_.first().__s.__size_;
1966 __r_.first().__l.__size_ = __s;
1969 return __r_.first().__l.__size_;
/freebsd/contrib/llvm-project/libcxx/include/__mdspan/
H A Dextents.h129 static constexpr size_t __size_ = sizeof...(_Values);
168 static_assert(sizeof...(_DynVals) == __size_, "Invalid number of values.");
169 _TDynamic __values[__size_] = {static_cast<_TDynamic>(__vals)...};
170 for (size_t __i = 0; __i < __size_; __i++) {
188 static_assert(_Size == __size_ || __size_ == dynamic_extent);
189 for (size_t __i = 0; __i < __size_; __i++) {
206 …_LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(__i < __size_, "extents access: index must be less than rank");
211 …_LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(__i < __size_, "extents access: index must be less than rank");
216 …_LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(__i < __size_, "extents access: index must be less than rank");
221 _LIBCPP_HIDE_FROM_ABI static constexpr size_t __size() { return __size_; }
/freebsd/contrib/llvm-project/libcxx/include/__ranges/
H A Dsubrange.h87 _LIBCPP_NO_UNIQUE_ADDRESS _Size __size_ = 0; variable
101 : __begin_(std::move(__iter)), __end_(std::move(__sent)), __size_(__n) { in subrange()
153 return __size_; in size()
184 __size_ += std::__to_unsigned_like(-__n); in advance()
191 __size_ -= std::__to_unsigned_like(__d); in advance()
/freebsd/contrib/llvm-project/libcxx/include/__memory_resource/
H A Dmonotonic_buffer_resource.h49 size_t __size_; member
78 __initial_.__size_ = __buffer_size; in monotonic_buffer_resource()
/freebsd/contrib/llvm-project/libcxx/include/__filesystem/
H A Ddirectory_entry.h208 uintmax_t __size_; member
222 __size_ = __nlink_ = uintmax_t(-1); in __reset()
366 return __data_.__size_;
/freebsd/contrib/llvm-project/libcxx/src/filesystem/
H A Ddirectory_entry.cpp58 __data_.__size_ = static_cast<uintmax_t>(full_st.st_size); in __do_refresh()