Home
last modified time | relevance | path

Searched refs:Container (Results 1 – 25 of 247) sorted by relevance

12345678910

/llvm-project-15.0.7/libcxx/test/support/
H A Ddeduction_guides_sfinae_checks.h66 static_assert(SFINAEs_away<Container, Iter, Iter, BadAlloc>); in SequenceContainerDeductionGuidesSfinaeAway()
71 static_assert(SFINAEs_away<Container, Alloc>); in SequenceContainerDeductionGuidesSfinaeAway()
101 static_assert(SFINAEs_away<Container, BadIter, BadIter>); in AssociativeContainerDeductionGuidesSfinaeAway()
107 static_assert(SFINAEs_away<Container, BadIter, BadIter, Comp>); in AssociativeContainerDeductionGuidesSfinaeAway()
115 SFINAEs_away<Container, OutputIter, OutputIter, Comp, Alloc>); in AssociativeContainerDeductionGuidesSfinaeAway()
124 static_assert(SFINAEs_away<Container, BadIter, BadIter, Alloc>); in AssociativeContainerDeductionGuidesSfinaeAway()
135 static_assert(SFINAEs_away<Container, InitList, Comp, BadAlloc>); in AssociativeContainerDeductionGuidesSfinaeAway()
175 static_assert(SFINAEs_away<Container, BadIter, BadIter>); in UnorderedContainerDeductionGuidesSfinaeAway()
241 static_assert(SFINAEs_away<Container, BadIter, BadIter, Alloc>); in UnorderedContainerDeductionGuidesSfinaeAway()
244 static_assert(SFINAEs_away<Container, Iter, Iter, BadAlloc>); in UnorderedContainerDeductionGuidesSfinaeAway()
[all …]
H A Dcontainer_debug_tests.h89 template <class Container, class ValueType = typename Container::value_type>
99 template <class Container>
168 Container C(A);
204 Container C = makeContainer(1);
218 Container C = makeContainer(1);
232 Container C = makeContainer(1);
253 Container C1 = makeContainer(3);
255 Container C2 = C1;
275 Container C2 = std::move(C1);
293 Container C2 = C1;
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.sort/sort/
H A Dsort.pass.cpp29 template <class Container, class RI>
35 Container save(l - f); in test_sort_helper()
85 Container ia(sa); in test_sort_()
109 template <class Container>
118 Container array(N); in test_larger_sorts()
125 Container original = array; in test_larger_sorts()
160 template <class Container>
247 template <class Container>
256 test_sort_<Container, 1>(); in run_sort_tests()
257 test_sort_<Container, 2>(); in run_sort_tests()
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/debug/containers/
H A Dsequence_container_iterators.pass.cpp96 Container C2; in SpliceFirstElem()
101 Container C2; in SpliceFirstElem()
108 Container C = {1, 1}; in SpliceSameContainer()
117 Container C2; in SpliceFirstElemAfter()
122 Container C2; in SpliceFirstElemAfter()
163 Container const& CC = C; in BackOnEmptyContainer()
174 Container const& CC = C; in FrontOnEmptyContainer()
233 Container C2 = C1; in InsertIterValue()
258 Container C2 = C1; in EmplaceIterValue()
278 Container C2 = C1; in InsertIterSizeValue()
[all …]
H A Dstring.pass.cpp26 struct StringContainerChecks : BasicContainerChecks<Container, CT> {
27 using Base = BasicContainerChecks<Container, CT_String>;
28 using value_type = typename Container::value_type;
29 using allocator_type = typename Container::allocator_type;
30 using iterator = typename Container::iterator;
31 using const_iterator = typename Container::const_iterator;
51 Container C = makeContainer(N); in BackOnEmptyContainer()
52 Container const& CC = C; in BackOnEmptyContainer()
65 Container C = makeContainer(N); in FrontOnEmptyContainer()
66 Container const& CC = C; in FrontOnEmptyContainer()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/
H A Dset_allocator_requirement_test_templates.h38 Container c; in testSetInsert()
51 Container c; in testSetInsert()
64 Container c; in testSetInsert()
77 Container c; in testSetInsert()
90 Container c; in testSetInsert()
102 Container c; in testSetInsert()
114 Container c; in testSetInsert()
129 Container c; in testSetInsert()
150 Container c; in testSetEmplace()
163 Container c; in testSetEmplace()
[all …]
H A Dmap_allocator_requirement_test_templates.h39 Container c; in testMapInsert()
52 Container c; in testMapInsert()
65 Container c; in testMapInsert()
78 Container c; in testMapInsert()
91 Container c; in testMapInsert()
103 Container c; in testMapInsert()
115 Container c; in testMapInsert()
127 Container c; in testMapInsert()
142 Container c; in testMapInsert()
168 Container c; in testMapInsertHint()
[all …]
/llvm-project-15.0.7/libcxx/benchmarks/
H A DContainerBenchmarks.h20 template <class Container>
24 Container c(size); in BM_ConstructSize()
29 template <class Container>
30 void BM_ConstructSizeValue(benchmark::State& st, Container, typename Container::value_type const& v… in BM_ConstructSizeValue() argument
33 Container c(size, val); in BM_ConstructSizeValue()
38 template <class Container, class GenInputs>
45 Container c(begin, end); in BM_ConstructIterIter()
50 template <class Container, class GenInputs>
63 template <class Container, class GenInputs>
78 template <class Container, class GenInputs>
[all …]
H A DUtilities.h19 template <class Container>
20 auto HaveDataImpl(int) -> decltype((std::declval<Container&>().data(), std::true_type{}));
21 template <class Container>
27 template <class Container, std::enable_if_t<UtilitiesInternal::HasData<Container>::value>* = nullpt…
28 void DoNotOptimizeData(Container &c) { benchmark::DoNotOptimize(c.data()); } in DoNotOptimizeData()
29 template <class Container, std::enable_if_t<!UtilitiesInternal::HasData<Container>::value>* = nullp…
30 void DoNotOptimizeData(Container &c) { benchmark::DoNotOptimize(&c); } in DoNotOptimizeData()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DAttrIterator.h32 template <typename SpecificAttr, typename Container = AttrVec>
34 using Iterator = typename Container::const_iterator;
99 template <typename SpecificAttr, typename Container>
100 inline specific_attr_iterator<SpecificAttr, Container>
104 template <typename SpecificAttr, typename Container>
105 inline specific_attr_iterator<SpecificAttr, Container>
106 specific_attr_end(const Container& container) { in specific_attr_end()
110 template <typename SpecificAttr, typename Container>
111 inline bool hasSpecificAttr(const Container& container) { in hasSpecificAttr()
115 template <typename SpecificAttr, typename Container>
[all …]
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dwarn-range-loop-analysis.cpp14 struct Container { struct
90 Container<int> A; in test1()
139 Container<int&> B; in test2()
192 Container<Bar> C; in test3()
226 Container<Bar&> D; in test4()
264 Container<Foo> E; in test5()
283 Container<Foo&> F; in test6()
435 Container<Bar> C; in test10()
462 Container<Bar> C; in test_template_function()
476 Container<Bar> C; in static_member()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/associative/multimap/multimap.modifiers/
H A Dinsert_node_type.pass.cpp22 template <class Container>
23 typename Container::node_type
24 node_factory(typename Container::key_type const& key, in node_factory()
25 typename Container::mapped_type const& mapped) in node_factory()
27 static Container c; in node_factory()
32 template <class Container>
33 void test(Container& c) in test()
35 auto* nf = &node_factory<Container>; in test()
39 typename Container::node_type node = nf(i, i + 1); in test()
49 typename Container::node_type def; in test()
[all …]
H A Dinsert_node_type_hint.pass.cpp21 template <class Container>
22 typename Container::node_type
23 node_factory(typename Container::key_type const& key, in node_factory()
24 typename Container::mapped_type const& mapped) in node_factory()
26 static Container c; in node_factory()
31 template <class Container>
32 void test(Container& c) in test()
34 auto* nf = &node_factory<Container>; in test()
38 typename Container::node_type node = nf(i, i + 1); in test()
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/
H A Dinsert_node_type.pass.cpp21 template <class Container>
22 typename Container::node_type
23 node_factory(typename Container::key_type const& key, in node_factory()
24 typename Container::mapped_type const& mapped) in node_factory()
26 static Container c; in node_factory()
31 template <class Container>
32 void test(Container& c) in test()
34 auto* nf = &node_factory<Container>; in test()
38 typename Container::node_type node = nf(i, i + 1); in test()
49 typename Container::node_type def; in test()
[all …]
H A Dinsert_node_type_hint.pass.cpp21 template <class Container>
22 typename Container::node_type
23 node_factory(typename Container::key_type const& key, in node_factory()
24 typename Container::mapped_type const& mapped) in node_factory()
26 static Container c; in node_factory()
31 template <class Container>
32 void test(Container& c) in test()
34 auto* nf = &node_factory<Container>; in test()
38 typename Container::node_type node = nf(i, i + 1); in test()
/llvm-project-15.0.7/libcxx/test/std/containers/associative/multiset/
H A Dinsert_node_type.pass.cpp22 template <class Container>
23 typename Container::node_type
24 node_factory(typename Container::key_type const& key) in node_factory()
26 static Container c; in node_factory()
31 template <class Container>
32 void test(Container& c) in test()
34 auto* nf = &node_factory<Container>; in test()
38 typename Container::node_type node = nf(i); in test()
40 typename Container::iterator it = c.insert(std::move(node)); in test()
50 typename Container::node_type def; in test()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.multiset/
H A Dinsert_node_type.pass.cpp22 template <class Container>
23 typename Container::node_type
24 node_factory(typename Container::key_type const& key) in node_factory()
26 static Container c; in node_factory()
31 template <class Container>
32 void test(Container& c) in test()
34 auto* nf = &node_factory<Container>; in test()
38 typename Container::node_type node = nf(i); in test()
40 typename Container::iterator it = c.insert(std::move(node)); in test()
50 typename Container::node_type def; in test()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/
H A Dinsert_node_type.pass.cpp21 template <class Container>
22 typename Container::node_type
23 node_factory(typename Container::key_type const& key, in node_factory()
24 typename Container::mapped_type const& mapped) in node_factory()
26 static Container c; in node_factory()
32 template <class Container>
33 void test(Container& c) in test()
35 auto* nf = &node_factory<Container>; in test()
39 typename Container::node_type node = nf(i, i + 1); in test()
51 typename Container::node_type def; in test()
[all …]
H A Dinsert_node_type_hint.pass.cpp21 template <class Container>
22 typename Container::node_type
23 node_factory(typename Container::key_type const& key, in node_factory()
24 typename Container::mapped_type const& mapped) in node_factory()
26 static Container c; in node_factory()
32 template <class Container>
33 void test(Container& c) in test()
35 auto* nf = &node_factory<Container>; in test()
39 typename Container::node_type node = nf(i, i + 1); in test()
/llvm-project-15.0.7/libcxx/test/std/containers/associative/map/map.modifiers/
H A Dinsert_node_type.pass.cpp22 template <class Container>
23 typename Container::node_type
24 node_factory(typename Container::key_type const& key, in node_factory()
25 typename Container::mapped_type const& mapped) in node_factory()
27 static Container c; in node_factory()
33 template <class Container>
34 void test(Container& c) in test()
36 auto* nf = &node_factory<Container>; in test()
40 typename Container::node_type node = nf(i, i + 1); in test()
52 typename Container::node_type def; in test()
[all …]
H A Dinsert_node_type_hint.pass.cpp21 template <class Container>
22 typename Container::node_type
23 node_factory(typename Container::key_type const& key, in node_factory()
24 typename Container::mapped_type const& mapped) in node_factory()
26 static Container c; in node_factory()
32 template <class Container>
33 void test(Container& c) in test()
35 auto* nf = &node_factory<Container>; in test()
39 typename Container::node_type node = nf(i, i + 1); in test()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.zip/
H A Dctad.compile.pass.cpp19 struct Container { struct
30 static_assert(std::is_same_v<decltype(std::ranges::zip_view(Container{})), in testCTAD()
31 std::ranges::zip_view<std::ranges::owning_view<Container>>>); in testCTAD()
33 static_assert(std::is_same_v<decltype(std::ranges::zip_view(Container{}, View{})), in testCTAD()
34 std::ranges::zip_view<std::ranges::owning_view<Container>, View>>); in testCTAD()
36 Container c{}; in testCTAD()
38 decltype(std::ranges::zip_view(Container{}, View{}, c)), in testCTAD()
39 …std::ranges::zip_view<std::ranges::owning_view<Container>, View, std::ranges::ref_view<Container>>… in testCTAD()
/llvm-project-15.0.7/libcxx/test/std/containers/associative/set/
H A Dinsert_node_type.pass.cpp22 template <class Container>
23 typename Container::node_type
24 node_factory(typename Container::key_type const& key) in node_factory()
26 static Container c; in node_factory()
32 template <class Container>
33 void test(Container& c) in test()
35 auto* nf = &node_factory<Container>; in test()
39 typename Container::node_type node = nf(i); in test()
41 typename Container::insert_return_type irt = c.insert(std::move(node)); in test()
51 typename Container::node_type def; in test()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.set/
H A Dinsert_node_type.pass.cpp22 template <class Container>
23 typename Container::node_type
24 node_factory(typename Container::key_type const& key) in node_factory()
26 static Container c; in node_factory()
32 template <class Container>
33 void test(Container& c) in test()
35 auto* nf = &node_factory<Container>; in test()
39 typename Container::node_type node = nf(i); in test()
41 typename Container::insert_return_type irt = c.insert(std::move(node)); in test()
51 typename Container::node_type def; in test()
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/debug/
H A Dcontainers.multithread.pass.cpp23 template <typename Container>
24 Container makeContainer(int size) { in makeContainer()
25 Container c; in makeContainer()
26 typedef typename Container::value_type ValueType; in makeContainer()
33 template <typename Container>
40 std::vector<Container> containers; in ThreadUseIter()
41 std::vector<typename Container::iterator> iterators; in ThreadUseIter()
43 containers.push_back(makeContainer<Container>(3)); in ThreadUseIter()
44 Container& c = containers.back(); in ThreadUseIter()

12345678910