| /llvm-project/llvm/include/llvm/Support/ |
| H A D | Endian.h | 43 template <typename value_type> 44 [[nodiscard]] inline value_type byte_swap(value_type value, endianness endian) { in byte_swap() 51 template <typename value_type, endianness endian> 52 [[nodiscard]] inline value_type byte_swap(value_type value) { in byte_swap() 57 template <typename value_type, std::size_t alignment = unaligned> 58 [[nodiscard]] inline value_type read(const void *memory, endianness endian) { in read() 59 value_type ret; in read() 63 memory, (detail::PickAlignment<value_type, alignmen in read() 218 using value_type = ValueType; global() member 226 operator value_type() const { value_type() function 265 operator value_type() const { value_type() function [all...] |
| H A D | EndianStream.h | 27 template <typename value_type> 28 inline void write_array(raw_ostream &os, ArrayRef<value_type> values, in write_array() 31 value_type value = byte_swap<value_type>(orig, endian); in write_array() 32 os.write((const char *)&value, sizeof(value_type)); in write_array() 36 template <typename value_type> 37 inline void write(raw_ostream &os, value_type value, endianness endian) { in write() 38 value = byte_swap<value_type>(value, endian); in write() 39 os.write((const char *)&value, sizeof(value_type)); in write() 53 template <typename value_type> 54 inline void write(raw_ostream &os, ArrayRef<value_type> vals, in write() [all …]
|
| /llvm-project/libcxx/include/ |
| H A D | valarray | 23 typedef T value_type; 28 valarray(const value_type& x, size_t n); 29 valarray(const value_type* px, size_t n); 32 valarray(const slice_array<value_type>& sa); 33 valarray(const gslice_array<value_type>& ga); 34 valarray(const mask_array<value_type>& ma); 35 valarray(const indirect_array<value_type>& ia); 36 valarray(initializer_list<value_type> il); 42 valarray& operator=(initializer_list<value_type> il); 43 valarray& operator=(const value_type [all...] |
| /llvm-project/libcxx/include/__string/ |
| H A D | extern_template_lists.h | 33 …ing<_CharType>& basic_string<_CharType>::replace(size_type, size_type, value_type const*, size_typ… 34 …_ABI basic_string<_CharType>::size_type basic_string<_CharType>::rfind(value_type const*, size_typ… 35 …_Func(_LIBCPP_EXPORTED_FROM_ABI void basic_string<_CharType>::__init(value_type const*, size_type,… 37 …sic_string<_CharType>& basic_string<_CharType>::replace(size_type, size_type, value_type const*)) \ 39 …string<_CharType>::size_type basic_string<_CharType>::find_last_not_of(value_type const*, size_typ… 41 …tring<_CharType>::size_type basic_string<_CharType>::find_first_not_of(value_type const*, size_typ… 42 …M_ABI basic_string<_CharType>& basic_string<_CharType>::insert(size_type, size_type, value_type)) \ 43 …LIBCPP_EXPORTED_FROM_ABI basic_string<_CharType>& basic_string<_CharType>::operator=(value_type)) \ 44 …_Func(_LIBCPP_EXPORTED_FROM_ABI void basic_string<_CharType>::__init(value_type const*, size_type)… 46 …BI basic_string<_CharType>& basic_string<_CharType>::insert(size_type, value_type const*, size_typ… [all …]
|
| /llvm-project/libcxx/include/__algorithm/ |
| H A D | stable_sort.h | 48 typename iterator_traits<_BidirectionalIterator>::value_type* __first2, in __insertion_sort_move() 52 typedef typename iterator_traits<_BidirectionalIterator>::value_type value_type; in __insertion_sort_move() 55 unique_ptr<value_type, __destruct_n&> __h(__first2, __d); in __insertion_sort_move() 56 value_type* __last2 = __first2; in __insertion_sort_move() 58 __d.template __incr<value_type>(); in __insertion_sort_move() 60 value_type* __j2 = __last2; in __insertion_sort_move() 61 value_type* __i2 = __j2; in __insertion_sort_move() 64 __d.template __incr<value_type>(); in __insertion_sort_move() 70 __d.template __incr<value_type>(); 45 typedef typename iterator_traits<_BidirectionalIterator>::value_type value_type; __insertion_sort_move() typedef 80 typedef typename iterator_traits<_InputIterator1>::value_type value_type; __merge_move_construct() typedef 152 typedef typename iterator_traits<_RandomAccessIterator>::value_type value_type; __stable_sort_move() typedef 199 typedef typename iterator_traits<_RandomAccessIterator>::value_type value_type; __stable_sort() typedef 240 using value_type = typename iterator_traits<_RandomAccessIterator>::value_type; __stable_sort_impl() local [all...] |
| H A D | stable_partition.h | 58 typedef typename iterator_traits<_ForwardIterator>::value_type value_type; in __stable_partition_impl() 60 unique_ptr<value_type, __destruct_n&> __h(__p.first, __d); in __stable_partition_impl() 63 value_type* __t = __p.first; in __stable_partition_impl() 64 ::new ((void*)__t) value_type(_Ops::__iter_move(__first)); in __stable_partition_impl() 65 __d.template __incr<value_type>(); in __stable_partition_impl() 73 ::new ((void*)__t) value_type(_Ops::__iter_move(__i)); in __stable_partition_impl() 74 __d.template __incr<value_type>(); in __stable_partition_impl() 81 for (value_type* __t2 = __p.first; __t2 < __t; ++__t2, (void)++__i) in __stable_partition_impl() 122 typedef typename iterator_traits<_ForwardIterator>::value_type value_typ in __stable_partition_impl() 57 typedef typename iterator_traits<_ForwardIterator>::value_type value_type; __stable_partition_impl() typedef 121 typedef typename iterator_traits<_ForwardIterator>::value_type value_type; __stable_partition_impl() typedef 177 typedef typename iterator_traits<_BidirectionalIterator>::value_type value_type; __stable_partition_impl() typedef 254 typedef typename iterator_traits<_BidirectionalIterator>::value_type value_type; __stable_partition_impl() typedef [all...] |
| H A D | rotate.h | 34 typedef typename iterator_traits<_ForwardIterator>::value_type value_type; in __rotate_left() typedef 37 value_type __tmp = _Ops::__iter_move(__first); in __rotate_left() 46 typedef typename iterator_traits<_BidirectionalIterator>::value_type value_type; in __rotate_right() typedef 50 value_type __tmp = _Ops::__iter_move(__lm1); in __rotate_right() 99 typedef typename iterator_traits<_RandomAccessIterator>::value_type value_type; in __rotate_gcd() typedef 110 value_type __t(_Ops::__iter_move(--__p)); in __rotate_gcd() 130 typedef typename iterator_traits<_ForwardIterator>::value_type value_type; in __rotate_impl() typedef 131 if (is_trivially_move_assignable<value_type>::value) { in __rotate_impl() 144 typedef typename iterator_traits<_BidirectionalIterator>::value_type value_type; in __rotate_impl() typedef 145 if (is_trivially_move_assignable<value_type>::value) { in __rotate_impl() [all …]
|
| /llvm-project/libcxx/test/std/containers/associative/multimap/multimap.nonmember/ |
| H A D | op_compare.pass.cpp | 43 typedef map_type::value_type value_type; in main() typedef 46 m1.insert(value_type(1, "abc")); in main() 47 m2.insert(value_type(2, "abc")); in main() 53 m1.insert(value_type(1, "abc")); in main() 54 m2.insert(value_type(1, "abc")); in main() 60 m1.insert(value_type(1, "ab")); in main() 61 m2.insert(value_type(1, "abc")); in main() 67 m1.insert(value_type(1, "abc")); in main() 68 m2.insert(value_type(1, "bcd")); in main() 74 m1.insert(value_type(1, "abc")); in main() [all …]
|
| /llvm-project/libcxx/test/std/containers/associative/map/map.nonmember/ |
| H A D | op_compare.pass.cpp | 43 typedef map_type::value_type value_type; in main() typedef 46 m1.insert(value_type(1, "abc")); in main() 47 m2.insert(value_type(2, "abc")); in main() 53 m1.insert(value_type(1, "abc")); in main() 54 m2.insert(value_type(1, "abc")); in main() 60 m1.insert(value_type(1, "ab")); in main() 61 m2.insert(value_type(1, "abc")); in main() 67 m1.insert(value_type(1, "abc")); in main() 68 m2.insert(value_type(1, "bcd")); in main() 74 m1.insert(value_type(1, "abc")); in main() [all …]
|
| /llvm-project/libcxx/test/std/iterators/iterator.requirements/iterator.concepts/iterator.concept.bidir/ |
| H A D | bidirectional_iterator.compile.pass.cpp | 34 using value_type = int; typedef 38 value_type operator*() const; 50 using value_type = int; typedef 54 value_type& operator*() const; 67 using value_type = int; typedef 71 value_type& operator*() const; 84 using value_type = int; typedef 88 value_type& operator*() const; 100 using value_type = int; typedef 104 value_type& operator*() const; [all …]
|
| /llvm-project/libcxx/test/std/iterators/iterator.primitives/iterator.traits/ |
| H A D | cxx20_iterator_traits.compile.pass.cpp | 59 static_assert(std::same_as<typename Traits::value_type, ValueType>); in test() 176 struct value_type {}; struct 183 static_assert(std::same_as<AllMembersTraits::value_type, AllMembers::value_type>); 191 struct value_type {}; struct 195 value_type* operator->() const; 199 static_assert(std::same_as<NoPointerMemberTraits::value_type, NoPointerMember::value_type>); 207 struct value_type {}; struct 216 static_assert(std::same_as<IterConceptTraits::value_type, IterConcept::value_type>); 224 struct value_type {}; struct 225 struct reference { operator value_type() const; }; [all …]
|
| H A D | empty.verify.cpp | |
| /llvm-project/lldb/test/API/commands/expression/import-std-module/vector/ |
| H A D | TestVectorFromStdModule.py | 25 value_type = "value_type" 45 front = self.expect_expr("a.front()", result_type=value_type, result_value="3") 46 self.expect_expr("a[1]", result_type=value_type, result_value="1") 47 self.expect_expr("a.back()", result_type=value_type, result_value="2") 50 self.expect_expr("a.front()", result_type=value_type, result_value="1") 51 self.expect_expr("a[1]", result_type=value_type, result_value="2") 52 self.expect_expr("a.back()", result_type=value_type, result_value="3") 55 self.expect_expr("a.front()", result_type=value_type, result_value="3") 56 self.expect_expr("a[1]", result_type=value_type, result_value="2") 57 self.expect_expr("a.back()", result_type=value_type, result_value="1") [all …]
|
| /llvm-project/libcxx/test/support/ |
| H A D | nasty_containers.h | 25 typedef typename nested_container::value_type value_type; typedef 41 nasty_vector(size_type n, const value_type& value) : v_(n, value) {} in nasty_vector() 44 nasty_vector(std::initializer_list<value_type> il) : v_(il) {} in nasty_vector() 52 void assign(size_type n, const value_type& u) { v_.assign(n, u); } in assign() 54 void assign(std::initializer_list<value_type> il) { v_.assign(il); } in assign() 89 value_type* data() TEST_NOEXCEPT { return v_.data(); } in data() 90 const value_type* data() const TEST_NOEXCEPT { return v_.data(); } in data() 92 void push_back(const value_type& x) { v_.push_back(x); } in push_back() 94 void push_back(value_type&& x) { v_.push_back(std::forward<value_type&&>(x)); } in push_back() 105 iterator insert(const_iterator pos, const value_type& x) { return v_.insert(pos, x); } in insert() [all …]
|
| H A D | read_write.h | 13 using value_type = int; member 14 value_type& operator*() const; 23 using value_type = int; member 24 value_type operator*() const; 28 using value_type = int const; member 29 value_type& operator*() const; 34 using value_type = int; member
|
| H A D | cmpxchg_loop.h | 12 bool cmpxchg_weak_loop(A& atomic, typename A::value_type& expected, typename A::value_type desired)… in cmpxchg_weak_loop() 23 bool cmpxchg_weak_loop(A& atomic, typename A::value_type& expected, typename A::value_type desired, in cmpxchg_weak_loop() 37 bool c_cmpxchg_weak_loop(A* atomic, typename A::value_type* expected, typename A::value_type desire… in c_cmpxchg_weak_loop() 48 bool c_cmpxchg_weak_loop(A* atomic, typename A::value_type* expected, typename A::value_type desire… in c_cmpxchg_weak_loop()
|
| /llvm-project/libcxx/include/__functional/ |
| H A D | boyer_moore_searcher.h | 44 using value_type = _Value; 47 const value_type __default_value_; 52 size_t __sz, value_type __default_value, _Hash __hash, _BinaryPredicate __pred) in _BMSkipTable() 55 _LIBCPP_HIDE_FROM_ABI void insert(const key_type& __key, value_type __val) { __table_[__key] = __val; } 57 _LIBCPP_HIDE_FROM_ABI value_type operator[](const key_type& __key) const { 67 using value_type = _Value; 71 std::array<value_type, 256> __table_; 75 _LIBCPP_HIDE_FROM_ABI explicit _BMSkipTable(size_t, value_type __default_value, _Hash, _BinaryPredicate) { in _BMSkipTable() 79 _LIBCPP_HIDE_FROM_ABI void insert(key_type __key, value_type __val) { in insert() 83 _LIBCPP_HIDE_FROM_ABI value_type operato 93 using value_type = typename std::iterator_traits<_RandomAccessIterator1>::value_type; global() variable 224 using value_type = typename iterator_traits<_RandomAccessIterator1>::value_type; global() variable [all...] |
| /llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/ |
| H A D | loop-convert-rewritten-binop.cpp | 15 typedef int value_type; typedef 18 value_type &operator*(); 19 const value_type &operator*() const; 21 void insert(value_type); 22 value_type X; 31 typedef int value_type; typedef 33 value_type &operator*(); 34 const value_type &operator*() const; 37 void insert(value_type); 38 value_type X;
|
| H A D | use-nodiscard.cpp | 195 using value_type = T; typedef in Bar 196 using reference = value_type &; 197 using const_reference = const value_type &; 207 bool f25(value_type) const; 211 typename T::value_type f35() const; 238 typedef T value_type; typedef in Bar2 239 typedef value_type &reference; 240 typedef const value_type &const_reference; 243 bool f40(value_type) const; 247 value_type f42() const; [all …]
|
| /llvm-project/libcxx/test/std/containers/unord/unord.set/ |
| H A D | types.pass.cpp | 39 static_assert((std::is_same<C::value_type, short>::value), ""); in main() 43 static_assert((std::is_same<C::allocator_type, std::allocator<C::value_type> >::value), ""); in main() 44 static_assert((std::is_same<C::reference, C::value_type&>::value), ""); in main() 45 static_assert((std::is_same<C::const_reference, const C::value_type&>::value), ""); in main() 46 static_assert((std::is_same<C::pointer, C::value_type*>::value), ""); in main() 47 static_assert((std::is_same<C::const_pointer, const C::value_type*>::value), ""); in main() 55 static_assert((std::is_same<C::value_type, short>::value), ""); in main() 59 static_assert((std::is_same<C::allocator_type, min_allocator<C::value_type> >::value), ""); in main() 60 static_assert((std::is_same<C::reference, C::value_type&>::value), ""); in main() 61 static_assert((std::is_same<C::const_reference, const C::value_type&>::value), ""); in main() [all …]
|
| /llvm-project/libcxx/test/std/containers/unord/unord.multiset/ |
| H A D | types.pass.cpp | 39 static_assert((std::is_same<C::value_type, short>::value), ""); in main() 43 static_assert((std::is_same<C::allocator_type, std::allocator<C::value_type> >::value), ""); in main() 44 static_assert((std::is_same<C::reference, C::value_type&>::value), ""); in main() 45 static_assert((std::is_same<C::const_reference, const C::value_type&>::value), ""); in main() 46 static_assert((std::is_same<C::pointer, C::value_type*>::value), ""); in main() 47 static_assert((std::is_same<C::const_pointer, const C::value_type*>::value), ""); in main() 55 static_assert((std::is_same<C::value_type, short>::value), ""); in main() 59 static_assert((std::is_same<C::allocator_type, min_allocator<C::value_type> >::value), ""); in main() 60 static_assert((std::is_same<C::reference, C::value_type&>::value), ""); in main() 61 static_assert((std::is_same<C::const_reference, const C::value_type&>::value), ""); in main() [all …]
|
| /llvm-project/lldb/test/API/commands/expression/import-std-module/array/ |
| H A D | TestArrayFromStdModule.py | 23 value_type = "value_type" 44 self.expect_expr("a.front()", result_type=value_type, result_value="3") 45 self.expect_expr("a[1]", result_type=value_type, result_value="1") 46 self.expect_expr("a.back()", result_type=value_type, result_value="2") 52 self.expect_expr("*a.begin()", result_type=value_type, result_value="3") 55 self.expect_expr("a.at(0)", result_type=value_type, result_value="3") 70 "b.front()", result_type=value_type, result_children=dbg_info_elem_children 73 "b[0]", result_type=value_type, result_children=dbg_info_elem_children 76 "b.back()", result_type=value_type, result_children=dbg_info_elem_children 84 "*b.begin()", result_type=value_type, result_children=dbg_info_elem_children [all …]
|
| /llvm-project/libcxx/test/std/containers/unord/unord.map/ |
| H A D | types.pass.cpp | 44 static_assert((std::is_same<C::allocator_type, std::allocator<C::value_type> >::value), ""); in main() 45 …static_assert((std::is_same<C::value_type, std::pair<const C::key_type, C::mapped_type> >::value),… in main() 46 static_assert((std::is_same<C::reference, C::value_type&>::value), ""); in main() 47 static_assert((std::is_same<C::const_reference, const C::value_type&>::value), ""); in main() 48 static_assert((std::is_same<C::pointer, C::value_type*>::value), ""); in main() 49 static_assert((std::is_same<C::const_pointer, const C::value_type*>::value), ""); in main() 61 static_assert((std::is_same<C::allocator_type, min_allocator<C::value_type> >::value), ""); in main() 62 …static_assert((std::is_same<C::value_type, std::pair<const C::key_type, C::mapped_type> >::value),… in main() 63 static_assert((std::is_same<C::reference, C::value_type&>::value), ""); in main() 64 static_assert((std::is_same<C::const_reference, const C::value_type&>::value), ""); in main() [all …]
|
| /llvm-project/libcxx/test/std/containers/unord/unord.multimap/ |
| H A D | types.pass.cpp | 44 static_assert((std::is_same<C::allocator_type, std::allocator<C::value_type> >::value), ""); in main() 45 …static_assert((std::is_same<C::value_type, std::pair<const C::key_type, C::mapped_type> >::value),… in main() 46 static_assert((std::is_same<C::reference, C::value_type&>::value), ""); in main() 47 static_assert((std::is_same<C::const_reference, const C::value_type&>::value), ""); in main() 48 static_assert((std::is_same<C::pointer, C::value_type*>::value), ""); in main() 49 static_assert((std::is_same<C::const_pointer, const C::value_type*>::value), ""); in main() 61 static_assert((std::is_same<C::allocator_type, min_allocator<C::value_type> >::value), ""); in main() 62 …static_assert((std::is_same<C::value_type, std::pair<const C::key_type, C::mapped_type> >::value),… in main() 63 static_assert((std::is_same<C::reference, C::value_type&>::value), ""); in main() 64 static_assert((std::is_same<C::const_reference, const C::value_type&>::value), ""); in main() [all …]
|
| /llvm-project/libcxx/include/__atomic/ |
| H A D | atomic.h | 232 using value_type = _Tp; 233 using difference_type = value_type; 261 using value_type = _Tp*; 393 using value_type = _Tp; 394 using difference_type = value_type; 469 atomic_init(volatile atomic<_Tp>* __o, typename atomic<_Tp>::value_type __d) _NOEXCEPT { 475 atomic_init(atomic<_Tp>* __o, typename atomic<_Tp>::value_type __d) _NOEXCEPT { 482 _LIBCPP_HIDE_FROM_ABI void atomic_store(volatile atomic<_Tp>* __o, typename atomic<_Tp>::value_type __d) _NOEXCEPT { 487 _LIBCPP_HIDE_FROM_ABI void atomic_store(atomic<_Tp>* __o, typename atomic<_Tp>::value_type __d) _NOEXCEPT { 495 atomic_store_explicit(volatile atomic<_Tp>* __o, typename atomic<_Tp>::value_type __ 38 using value_type = _Tp; global() member [all...] |