Home
last modified time | relevance | path

Searched refs:iterator_category (Results 1 – 25 of 260) sorted by relevance

1234567891011

/llvm-project-15.0.7/libcxx/test/std/iterators/iterator.primitives/iterator.traits/
H A Dempty.fail.cpp27 typedef std::forward_iterator_tag iterator_category; typedef
36 typedef std::forward_iterator_tag iterator_category; typedef
45 typedef std::forward_iterator_tag iterator_category; typedef
54 typedef std::forward_iterator_tag iterator_category; typedef
74 …typedef T::iterator_category CT; // expected-error-re {{no type named 'iterator_category' in 'std:… in main()
83 …typedef T::iterator_category CT; // expected-error-re {{no type named 'iterator_category' in 'std:… in main()
92 …typedef T::iterator_category CT; // expected-error-re {{no type named 'iterator_category' in 'std:… in main()
101 …typedef T::iterator_category CT; // expected-error-re {{no type named 'iterator_category' in 'std:… in main()
110 …typedef T::iterator_category CT; // expected-error-re {{no type named 'iterator_category' in 'std:… in main()
119 …typedef T::iterator_category CT; // expected-error-re {{no type named 'iterator_category' in 'std:… in main()
H A Dcxx20_iterator_traits.compile.pass.cpp58 static_assert(std::same_as<typename Traits::iterator_category, Category>); in test()
170 struct iterator_category {}; struct
177 static_assert(std::same_as<AllMembersTraits::iterator_category, AllMembers::iterator_category>);
185 struct iterator_category {}; struct
193 static_assert(std::same_as<NoPointerMemberTraits::iterator_category, NoPointerMember::iterator_cate…
201 struct iterator_category {}; struct
210 static_assert(std::same_as<IterConceptTraits::iterator_category, IterConcept::iterator_category>);
218 struct iterator_category {}; struct
232 static_assert(std::same_as<LegacyInputTraits::iterator_category, LegacyInput::iterator_category>);
278 static_assert(std::same_as<LegacyForwardTraits::iterator_category, std::forward_iterator_tag>);
[all …]
H A Diterator.pass.cpp34 typedef std::forward_iterator_tag iterator_category; typedef
44 static_assert((std::is_same<It::iterator_category, std::forward_iterator_tag>::value), ""); in main()
/llvm-project-15.0.7/libcxx/test/libcxx/iterators/predef.iterators/__unconstrained_reverse_iterator/
H A Dtypes.compile.pass.cpp44 typedef std::iterator<typename T::iterator_category, typename T::value_type> iterator_base; in test()
48 if constexpr (std::is_same_v<typename T::iterator_category, std::contiguous_iterator_tag>) { in test()
49 …static_assert((std::is_same<typename R::iterator_category, std::random_access_iterator_tag>::value… in test()
51 …static_assert((std::is_same<typename R::iterator_category, typename T::iterator_category>::value),… in test()
54 …static_assert((std::is_same<typename R::iterator_category, typename T::iterator_category>::value),… in test()
61 using iterator_category = std::bidirectional_iterator_tag; typedef
93 using iterator_category = std::bidirectional_iterator_tag; typedef
/llvm-project-15.0.7/libcxx/test/std/iterators/predef.iterators/reverse.iterators/
H A Dtypes.compile.pass.cpp52 typedef std::iterator<typename T::iterator_category, typename T::value_type> iterator_base; in test()
56 if constexpr (std::is_same_v<typename T::iterator_category, std::contiguous_iterator_tag>) { in test()
57 …static_assert((std::is_same<typename R::iterator_category, std::random_access_iterator_tag>::value… in test()
59 …static_assert((std::is_same<typename R::iterator_category, typename T::iterator_category>::value),… in test()
62 …static_assert((std::is_same<typename R::iterator_category, typename T::iterator_category>::value),… in test()
69 using iterator_category = std::bidirectional_iterator_tag; typedef
101 using iterator_category = std::bidirectional_iterator_tag; typedef
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.filter/iterator/
H A Dtypes.compile.pass.cpp25 typename T::iterator_category; member in T
40 using iterator_category = std::input_iterator_tag; typedef
84 …std::is_same_v<FilterIteratorFor<ForwardIteratorWithInputCategory>::iterator_category, std::input_… in f()
85 …static_assert(std::is_same_v<FilterIteratorFor<forward_iterator<int*>>::iterator_category, std::fo… in f()
86 …static_assert(std::is_same_v<FilterIteratorFor<bidirectional_iterator<int*>>::iterator_category, s… in f()
87 …static_assert(std::is_same_v<FilterIteratorFor<random_access_iterator<int*>>::iterator_category, s… in f()
88 …static_assert(std::is_same_v<FilterIteratorFor<contiguous_iterator<int*>>::iterator_category, std:… in f()
89 …static_assert(std::is_same_v<FilterIteratorFor<int*>::iterator_category, std::bidirectional_iterat… in f()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.factories/range.iota.view/iterator/
H A Dmember_typedefs.compile.pass.cpp62 concept HasIteratorCategory = requires { typename std::ranges::iterator_t<T>::iterator_category; }; member in std::ranges::iterator_t<T>
69 static_assert(std::same_as<Iter::iterator_category, std::input_iterator_tag>); in test()
79 static_assert(std::same_as<Iter::iterator_category, std::input_iterator_tag>); in test()
89 static_assert(std::same_as<Iter::iterator_category, std::input_iterator_tag>); in test()
104 static_assert(std::same_as<Iter::iterator_category, std::input_iterator_tag>); in test()
115 static_assert(std::same_as<Iter::iterator_category, std::input_iterator_tag>); in test()
127 static_assert(std::same_as<Iter::iterator_category, std::input_iterator_tag>); in test()
135 static_assert(std::same_as<Iter::iterator_category, std::input_iterator_tag>); in test()
151 static_assert(std::same_as<Iter::iterator_category, std::input_iterator_tag>); in test()
159 static_assert(std::same_as<Iter::iterator_category, std::input_iterator_tag>); in test()
/llvm-project-15.0.7/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iterator/
H A Dtypes.pass.cpp35 using iterator_category = std::bidirectional_iterator_tag; typedef
67 typedef std::forward_iterator_tag iterator_category; typedef
92 if constexpr (std::is_same_v<typename T::iterator_category, std::contiguous_iterator_tag>) { in test()
93 …static_assert((std::is_same<typename R::iterator_category, std::random_access_iterator_tag>::value… in test()
95 …static_assert((std::is_same<typename R::iterator_category, typename T::iterator_category>::value),… in test()
98 …static_assert((std::is_same<typename R::iterator_category, typename T::iterator_category>::value),… in test()
/llvm-project-15.0.7/libcxx/test/support/
H A Dalmost_satisfies_types.h32 using iterator_category = void; variable
49 using iterator_category = std::input_iterator_tag; variable
67 using iterator_category = std::input_iterator_tag; variable
151 using iterator_category = std::input_iterator_tag; variable
170 using iterator_category = std::forward_iterator_tag; variable
193 using iterator_category = std::forward_iterator_tag; variable
237 using iterator_category = std::input_iterator_tag; variable
258 using iterator_category = std::contiguous_iterator_tag; variable
278 using iterator_category = std::input_iterator_tag; variable
295 using iterator_category = std::input_iterator_tag; variable
[all …]
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.transform/iterator/
H A Dtypes.pass.cpp23 concept HasIterCategory = requires { typename std::ranges::transform_view<V, F>::iterator_category;… member in std::ranges::transform_view<V, F>
29 …static_assert(std::same_as<std::iterator_traits<int*>::iterator_category, std::random_access_itera… in test()
34 static_assert(std::same_as<typename TIter::iterator_category, std::random_access_iterator_tag>); in test()
43 static_assert(std::same_as<typename TIter::iterator_category, std::random_access_iterator_tag>); in test()
52 …static_assert(std::same_as<typename TIter::iterator_category, std::input_iterator_tag>); // Note: … in test()
61 static_assert(std::same_as<typename TIter::iterator_category, std::bidirectional_iterator_tag>); in test()
70 static_assert(std::same_as<typename TIter::iterator_category, std::forward_iterator_tag>); in test()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.zip/iterator/
H A Dmember_types.compile.pass.cpp35 concept HasIterCategory = requires { typename T::iterator_category; }; member in T
39 using iterator_category = std::input_iterator_tag; typedef
75 static_assert(std::is_same_v<Iter::iterator_category, std::input_iterator_tag>); in test()
87 static_assert(std::is_same_v<Iter::iterator_category, std::input_iterator_tag>); in test()
99 static_assert(std::is_same_v<Iter::iterator_category, std::input_iterator_tag>); in test()
109 static_assert(std::is_same_v<Iter::iterator_category, std::input_iterator_tag>); in test()
122 static_assert(std::is_same_v<Iter::iterator_category, std::input_iterator_tag>); in test()
175 static_assert(std::is_same_v<Iter::iterator_category, std::input_iterator_tag>); in test()
180 static_assert(std::is_same_v<ConstIter::iterator_category, std::input_iterator_tag>); in test()
/llvm-project-15.0.7/libcxx/include/__iterator/
H A Diterator_traits.h76 using _Apply = typename _ITER_TRAITS<_Iter>::iterator_category;
212 concept __has_member_iterator_category = requires { typename _Ip::iterator_category; };
304 using type = typename _Ip::iterator_category;
329 using iterator_category = typename _Ip::iterator_category;
341 using iterator_category = typename __iterator_traits_iterator_category<_Ip>::type;
352 using iterator_category = output_iterator_tag;
377 typedef typename _Iter::iterator_category iterator_category;
386 is_convertible<typename _Iter::iterator_category, output_iterator_tag>::value
413 typedef random_access_iterator_tag iterator_category;
421 : is_convertible<typename iterator_traits<_Tp>::iterator_category, _Up>
[all …]
H A Dmove_iterator.h41 requires requires { typename iterator_traits<_Iter>::iterator_category; }
43 using iterator_category = _If<
44 … derived_from<typename iterator_traits<_Iter>::iterator_category, random_access_iterator_tag>,
46 typename iterator_traits<_Iter>::iterator_category
76 typename iterator_traits<_Iter>::iterator_category
77 > iterator_category;
/llvm-project-15.0.7/libcxx/test/libcxx/iterators/bounded_iter/
H A Dtypes.compile.pass.cpp26 struct iterator_category : std::random_access_iterator_tag {}; struct
35 static_assert(std::is_same<BoundedIter1::iterator_category, Iterator::iterator_category>::value, ""…
45 static_assert(std::is_same<BoundedIter2::iterator_category, std::random_access_iterator_tag>::value…
/llvm-project-15.0.7/libcxx/test/std/iterators/predef.iterators/iterators.common/
H A Diterator_traits.compile.pass.cpp40 static_assert(std::same_as<IterTraits::iterator_category, std::input_iterator_tag>); in test()
52 static_assert(std::same_as<IterTraits::iterator_category, std::input_iterator_tag>); in test()
66 static_assert(std::same_as<IterTraits::iterator_category, std::output_iterator_tag>); in test()
78 static_assert(std::same_as<IterTraits::iterator_category, std::output_iterator_tag>); in test()
90 static_assert(std::same_as<IterTraits::iterator_category, std::input_iterator_tag>); in test()
102 static_assert(std::same_as<IterTraits::iterator_category, std::forward_iterator_tag>); in test()
114 static_assert(std::same_as<IterTraits::iterator_category, std::forward_iterator_tag>); in test()
H A Dtypes.h24 typedef std::input_iterator_tag iterator_category; typedef
48 typedef std::input_iterator_tag iterator_category; typedef
72 typedef std::input_iterator_tag iterator_category; typedef
104 typedef std::input_iterator_tag iterator_category; typedef
128 typedef std::input_iterator_tag iterator_category; typedef
190 typedef std::input_iterator_tag iterator_category; typedef
240 typedef std::input_iterator_tag iterator_category; typedef
/llvm-project-15.0.7/libcxx/test/std/iterators/iterator.requirements/iterator.concepts/iterator.concept.random.access/
H A Dcontiguous_iterator.compile.pass.cpp33 typedef std::contiguous_iterator_tag iterator_category; typedef
68 typedef std::contiguous_iterator_tag iterator_category; typedef
102 typedef std::contiguous_iterator_tag iterator_category; typedef
137 typedef std::contiguous_iterator_tag iterator_category; typedef
179 typedef std::contiguous_iterator_tag iterator_category; typedef
215 typedef std::contiguous_iterator_tag iterator_category; typedef
/llvm-project-15.0.7/libcxx/test/std/iterators/predef.iterators/counted.iterator/
H A Diterator_traits.compile.pass.cpp29 static_assert(std::same_as<IterTraits::iterator_category, std::input_iterator_tag>); in test()
40 static_assert(std::same_as<IterTraits::iterator_category, std::forward_iterator_tag>); in test()
51 static_assert(std::same_as<IterTraits::iterator_category, std::random_access_iterator_tag>); in test()
62 static_assert(std::same_as<IterTraits::iterator_category, std::contiguous_iterator_tag>); in test()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.join.view/iterator/
H A Dmember_types.compile.pass.cpp34 using iterator_category = std::input_iterator_tag; typedef
51 concept HasIterCategory = requires { typename T::iterator_category; }; member in T
60 static_assert(std::is_same_v<Iter::iterator_category, std::bidirectional_iterator_tag>); in test()
70 static_assert(std::is_same_v<Iter::iterator_category, std::forward_iterator_tag>); in test()
91 static_assert(std::is_same_v<Iter::iterator_category, std::forward_iterator_tag>); in test()
/llvm-project-15.0.7/libcxx/test/libcxx/iterators/iterator.requirements/iterator.concepts/
H A Dcpp20_iter_concepts.pass.cpp29 using iterator_category = std::random_access_iterator_tag; typedef
38 using iterator_category = OtherTag; typedef
51 using iterator_category = OtherTagTwo; typedef
/llvm-project-15.0.7/libcxx/test/std/iterators/iterator.primitives/iterator.basic/
H A Diterator.pass.cpp40 …static_assert((std::is_same<typename It::iterator_category, std::forward_iterator_tag>::value), ""… in test2()
52 …static_assert((std::is_same<typename It::iterator_category, std::bidirectional_iterator_tag>::valu… in test3()
64 …static_assert((std::is_same<typename It::iterator_category, std::random_access_iterator_tag>::valu… in test4()
76 … static_assert((std::is_same<typename It::iterator_category, std::input_iterator_tag>::value), ""); in test5()
/llvm-project-15.0.7/libcxx/test/libcxx/ranges/range.utility.helpers/
H A Dhas_arrow.compile.pass.cpp18 typedef std::input_iterator_tag iterator_category; typedef
37 typedef std::input_iterator_tag iterator_category; typedef
56 typedef std::input_iterator_tag iterator_category; typedef
/llvm-project-15.0.7/libcxx/include/__algorithm/
H A Dequal.h68 …__last1, __first2, __last2, __pred, typename iterator_traits<_InputIterator1>::iterator_category(), in equal()
69 typename iterator_traits<_InputIterator2>::iterator_category()); in equal()
78 typename iterator_traits<_InputIterator1>::iterator_category(), in equal()
79 typename iterator_traits<_InputIterator2>::iterator_category()); in equal()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.lazy.split/range.lazy.split.outer/
H A Dtypes.compile.pass.cpp27 static_assert(std::same_as<typename OuterIter<ForwardView, ForwardView>::iterator_category, std::in…
30 concept NoIteratorCategory = !requires { typename OuterIter<Range, Pattern>::iterator_category; }; member in OuterIter<Range, Pattern>
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.lazy.split/range.lazy.split.inner/
H A Dtypes.compile.pass.cpp41 static_assert(std::same_as<typename InnerIter<ForwardView, ForwardView>::iterator_category, std::fo…
44 concept NoIteratorCategory = !requires { typename InnerIter<Range, Pattern>::iterator_category; }; member in InnerIter<Range, Pattern>

1234567891011