Home
last modified time | relevance | path

Searched refs:value_type (Results 1 – 25 of 1100) sorted by relevance

12345678910>>...44

/llvm-project-15.0.7/libc/test/src/__support/CPP/
H A Darrayref_test.cpp19 using value_type = typename ParamType::value_type; in TYPED_TEST() typedef
30 using value_type = typename ParamType::value_type; in TYPED_TEST() typedef
42 using value_type = typename ParamType::value_type; in TYPED_TEST() typedef
54 using value_type = typename ParamType::value_type; in TYPED_TEST() typedef
66 using value_type = typename ParamType::value_type; in TYPED_TEST() typedef
78 using value_type = typename ParamType::value_type; in TYPED_TEST() typedef
91 using value_type = typename ParamType::value_type; in TYPED_TEST() typedef
110 using value_type = typename ParamType::value_type; in TYPED_TEST() typedef
146 using value_type = typename ParamType::value_type; in TYPED_TEST() typedef
165 using value_type = typename ParamType::value_type; in TYPED_TEST() typedef
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DEndian.h48 template <typename value_type>
49 inline value_type byte_swap(value_type value, endianness endian) { in byte_swap()
57 inline value_type byte_swap(value_type value) { in byte_swap()
64 value_type ret; in read()
69 sizeof(value_type)); in read()
73 template<typename value_type,
84 value_type ret = read<value_type, alignment>(memory, endian); in readNext()
104 template<typename value_type,
111 template <typename value_type>
123 value_type val[2]; in readAtBitAlignment()
[all …]
H A DEndianStream.h27 template <typename value_type>
28 inline void write(raw_ostream &os, value_type value, endianness endian) { in write()
29 value = byte_swap<value_type>(value, endian); in write()
30 os.write((const char *)&value, sizeof(value_type)); in write()
44 template <typename value_type>
45 inline void write(raw_ostream &os, ArrayRef<value_type> vals, in write()
47 for (value_type v : vals) in write()
56 template <typename value_type> void write(ArrayRef<value_type> Val) { in write()
59 template <typename value_type> void write(value_type Val) { in write()
/llvm-project-15.0.7/libcxx/include/
H A Dvalarray103 valarray apply(value_type f(value_type)) const;
104 valarray apply(value_type f(const value_type&)) const;
105 void resize(size_t n, value_type x = value_type());
694 typedef typename _RmExpr::value_type value_type;
734 typedef typename _RmExpr::value_type value_type;
777 typedef typename _RmExpr::value_type value_type;
2779 __val_expr<_UnaryOp<__apply_expr<value_type, value_type(*)(value_type)>, _ValExpr> >
2780 apply(value_type __f(value_type)) const
2782 typedef __apply_expr<value_type, value_type(*)(value_type)> _Op;
2789 apply(value_type __f(const value_type&)) const
[all …]
/llvm-project-15.0.7/libcxx/include/__string/
H A Dextern_template_lists.h41 _Func(_LIBCPP_FUNC_VIS basic_string<_CharType>& basic_string<_CharType>::operator=(value_type)) \
42 _Func(_LIBCPP_FUNC_VIS void basic_string<_CharType>::__init(value_type const*, size_type)) \
54 _Func(_LIBCPP_FUNC_VIS void basic_string<_CharType>::__init(size_type, value_type)) \
59 _Func(_LIBCPP_FUNC_VIS void basic_string<_CharType>::push_back(value_type)) \
66 _Func(_LIBCPP_FUNC_VIS int basic_string<_CharType>::compare(value_type const*) const) \
77 _Func(_LIBCPP_FUNC_VIS void basic_string<_CharType>::resize(size_type, value_type)) \
90 _Func(_LIBCPP_FUNC_VIS void basic_string<_CharType>::__init(value_type const*, size_type)) \
104 _Func(_LIBCPP_FUNC_VIS void basic_string<_CharType>::__init(size_type, value_type)) \
111 _Func(_LIBCPP_FUNC_VIS void basic_string<_CharType>::push_back(value_type)) \
118 _Func(_LIBCPP_FUNC_VIS int basic_string<_CharType>::compare(value_type const*) const) \
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/associative/multimap/multimap.nonmember/
H A Dop_compare.pass.cpp43 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-15.0.7/libcxx/include/__algorithm/
H A Dstable_sort.h37 typedef typename iterator_traits<_InputIterator1>::value_type value_type; in __merge_move_construct() typedef
59 __d.template __incr<value_type>(); in __merge_move_construct()
65 __d.template __incr<value_type>(); in __merge_move_construct()
116 typedef typename iterator_traits<_RandomAccessIterator>::value_type value_type; in __stable_sort_move() typedef
130 __d.template __incr<value_type>(); in __stable_sort_move()
137 __d.template __incr<value_type>(); in __stable_sort_move()
168 typedef typename iterator_traits<_RandomAccessIterator>::value_type value_type; in __stable_sort() typedef
192 __d.__set(__l2, (value_type*)nullptr); in __stable_sort()
194 __d.__set(__len, (value_type*)nullptr); in __stable_sort()
212 using value_type = typename iterator_traits<_RandomAccessIterator>::value_type; in __stable_sort_impl() local
[all …]
H A Dstable_partition.h50 typedef typename iterator_traits<_ForwardIterator>::value_type value_type; in __stable_partition_impl() typedef
55 value_type* __t = __p.first; in __stable_partition_impl()
57 __d.template __incr<value_type>(); in __stable_partition_impl()
70 __d.template __incr<value_type>(); in __stable_partition_impl()
134 typedef typename iterator_traits<_ForwardIterator>::value_type value_type; in __stable_partition_impl() typedef
136 pair<value_type*, ptrdiff_t> __p(0, 0); in __stable_partition_impl()
180 typedef typename iterator_traits<_BidirectionalIterator>::value_type value_type; in __stable_partition_impl() typedef
185 value_type* __t = __p.first; in __stable_partition_impl()
187 __d.template __incr<value_type>(); in __stable_partition_impl()
267 typedef typename iterator_traits<_BidirectionalIterator>::value_type value_type; in __stable_partition_impl() typedef
[all …]
H A Drotate.h32 typedef typename iterator_traits<_ForwardIterator>::value_type value_type; in __rotate_left() typedef
35 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()
110 typedef typename iterator_traits<_RandomAccessIterator>::value_type value_type; in __rotate_gcd() typedef
123 value_type __t(_Ops::__iter_move(--__p)); in __rotate_gcd()
147 typedef typename iterator_traits<_ForwardIterator>::value_type value_type; in __rotate_impl() typedef
148 if (is_trivially_move_assignable<value_type>::value) in __rotate_impl()
162 typedef typename iterator_traits<_BidirectionalIterator>::value_type value_type; in __rotate_impl() typedef
163 if (is_trivially_move_assignable<value_type>::value) in __rotate_impl()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/associative/map/map.nonmember/
H A Dop_compare.pass.cpp43 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-15.0.7/libcxx/test/std/iterators/iterator.requirements/iterator.concepts/iterator.concept.bidir/
H A Dbidirectional_iterator.compile.pass.cpp34 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
117 using value_type = int; typedef
[all …]
/llvm-project-15.0.7/lldb/test/API/commands/expression/import-std-module/vector/
H A DTestVectorFromStdModule.py43 value_type = front.GetDisplayTypeName()
44 self.assertIn(value_type, [
48 self.expect_expr("a[1]", result_type=value_type, result_value="1")
49 self.expect_expr("a.back()", result_type=value_type, result_value="2")
52 self.expect_expr("a.front()", result_type=value_type, result_value="1")
53 self.expect_expr("a[1]", result_type=value_type, result_value="2")
54 self.expect_expr("a.back()", result_type=value_type, result_value="3")
58 self.expect_expr("a[1]", result_type=value_type, result_value="2")
59 self.expect_expr("a.back()", result_type=value_type, result_value="1")
72 self.expect_expr("a.back()", result_type=value_type, result_value="2")
[all …]
/llvm-project-15.0.7/libcxx/test/std/iterators/iterator.primitives/iterator.traits/
H A Dcxx20_iterator_traits.compile.pass.cpp171 struct value_type {}; struct
178 static_assert(std::same_as<AllMembersTraits::value_type, AllMembers::value_type>);
186 struct value_type {}; struct
202 struct value_type {}; struct
211 static_assert(std::same_as<IterConceptTraits::value_type, IterConcept::value_type>);
219 struct value_type {}; struct
233 static_assert(std::same_as<LegacyInputTraits::value_type, LegacyInput::value_type>);
286 struct value_type {}; struct
306 struct value_type {}; struct
336 struct value_type {}; struct
[all …]
H A Dempty.fail.cpp24 typedef A value_type; typedef
42 typedef A value_type; typedef
51 typedef A value_type; typedef
60 typedef A value_type; typedef
71 …typedef T::value_type VT; // expected-error-re {{no type named 'value_type' in 'std:{{.*}}:… in main()
80 …typedef T::value_type VT; // expected-error-re {{no type named 'value_type' in 'std:{{.*}}:… in main()
89 …typedef T::value_type VT; // expected-error-re {{no type named 'value_type' in 'std:{{.*}}:… in main()
98 …typedef T::value_type VT; // expected-error-re {{no type named 'value_type' in 'std:{{.*}}:… in main()
107 …typedef T::value_type VT; // expected-error-re {{no type named 'value_type' in 'std:{{.*}}:… in main()
116 …typedef T::value_type VT; // expected-error-re {{no type named 'value_type' in 'std:{{.*}}:… in main()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/modernize/
H A Dloop-convert-rewritten-binop.cpp15 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 Duse-nodiscard.cpp195 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-15.0.7/libcxx/test/support/
H A Dnasty_containers.h23 typedef typename nested_container::value_type value_type; typedef
42 nasty_vector(std::initializer_list<value_type> il) : v_(il) {} in nasty_vector()
88 void push_back(const value_type& x) { v_.push_back(x); } in push_back()
90 void push_back(value_type&& x) { v_.push_back(std::forward<value_type&&>(x)); } in push_back()
103 …iterator insert(const_iterator pos, value_type&& x) { return v_.insert(pos, std::forward<valu… in insert()
145 typedef typename nested_container::value_type value_type; typedef
165 nasty_list(std::initializer_list<value_type> il) : l_(il) {} in nasty_list()
206 void push_back(const value_type& x) { l_.push_back(x); } in push_back()
208 void push_back(value_type&& x) { l_.push_back(std::forward<value_type&&>(x)); } in push_back()
209 void push_front(value_type&& x) { l_.push_front(std::forward<value_type&&>(x)); } in push_front()
[all …]
H A Dread_write.h12 using value_type = int; member
13 value_type& operator*() const;
22 using value_type = int; member
23 value_type operator*() const;
27 using value_type = int const; member
28 value_type& operator*() const;
33 using value_type = int; member
H A Dcmpxchg_loop.h12 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-15.0.7/libcxx/include/__functional/
H A Dboyer_moore_searcher.h49 using value_type = _Value;
52 const value_type __default_value_;
78 using value_type = _Value;
82 std::array<value_type, 256> __table_;
105 using value_type = typename std::iterator_traits<_RandomAccessIterator1>::value_type; variable
106 using __skip_table_type = _BMSkipTable<value_type,
110 is_integral_v<value_type>
111 && sizeof(value_type) == 1
233 using value_type = typename iterator_traits<_RandomAccessIterator1>::value_type; variable
234 using __skip_table_type = _BMSkipTable<value_type,
[all …]
/llvm-project-15.0.7/lldb/test/API/commands/expression/import-std-module/array/
H A DTestArrayFromStdModule.py27 value_type = array_type + "::value_type"
42 self.expect_expr("a.front()", result_type=value_type, result_value="3")
43 self.expect_expr("a[1]", result_type=value_type, result_value="1")
44 self.expect_expr("a.back()", result_type=value_type, result_value="2")
50 self.expect_expr("*a.begin()", result_type=value_type, result_value="3")
53 self.expect_expr("a.at(0)", result_type=value_type, result_value="3")
59 value_type = array_type + "::value_type"
72 … self.expect_expr("b.front()", result_type=value_type, result_children=dbg_info_elem_children)
73 self.expect_expr("b[0]", result_type=value_type, result_children=dbg_info_elem_children)
74 self.expect_expr("b.back()", result_type=value_type, result_children=dbg_info_elem_children)
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.set/
H A Dtypes.pass.cpp39 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-15.0.7/libcxx/test/std/containers/unord/unord.multiset/
H A Dtypes.pass.cpp39 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-15.0.7/libcxx/test/std/containers/unord/unord.multimap/
H A Dtypes.pass.cpp44 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()
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()
65 static_assert((std::is_same<C::pointer, min_pointer<C::value_type>>::value), ""); in main()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.map/
H A Dtypes.pass.cpp44 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()
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()
65 static_assert((std::is_same<C::pointer, min_pointer<C::value_type>>::value), ""); in main()
[all …]

12345678910>>...44