| /llvm-project/libcxx/test/std/iterators/iterator.primitives/iterator.traits/ |
| H A D | empty.verify.cpp | |
| H A D | cxx20_iterator_traits.compile.pass.cpp | 58 static_assert(std::same_as<typename Traits::iterator_category, Category>); in test() 175 struct iterator_category {}; struct 182 static_assert(std::same_as<AllMembersTraits::iterator_category, AllMembers::iterator_category>); 190 struct iterator_category {}; struct 198 static_assert(std::same_as<NoPointerMemberTraits::iterator_category, NoPointerMember::iterator_cate… 206 struct iterator_category {}; struct 215 static_assert(std::same_as<IterConceptTraits::iterator_category, IterConcept::iterator_category>); 223 struct iterator_category {}; struct 237 static_assert(std::same_as<LegacyInputTraits::iterator_category, LegacyInput::iterator_category>); 259 static_assert(std::same_as<LegacyInputNoValueTypeTraits::iterator_category, std::input_iterator_tag… [all …]
|
| H A D | iterator.pass.cpp | 34 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/libcxx/test/std/iterators/predef.iterators/reverse.iterators/ |
| H A D | types.compile.pass.cpp | 52 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/libcxx/test/std/ranges/range.adaptors/range.filter/iterator/ |
| H A D | types.compile.pass.cpp | 24 typename T::iterator_category; member in T 39 using iterator_category = std::input_iterator_tag; typedef 83 …std::is_same_v<FilterIteratorFor<ForwardIteratorWithInputCategory>::iterator_category, std::input_… in f() 84 …static_assert(std::is_same_v<FilterIteratorFor<forward_iterator<int*>>::iterator_category, std::fo… in f() 85 …static_assert(std::is_same_v<FilterIteratorFor<bidirectional_iterator<int*>>::iterator_category, s… in f() 86 …static_assert(std::is_same_v<FilterIteratorFor<random_access_iterator<int*>>::iterator_category, s… in f() 87 …static_assert(std::is_same_v<FilterIteratorFor<contiguous_iterator<int*>>::iterator_category, std:… in f() 88 …static_assert(std::is_same_v<FilterIteratorFor<int*>::iterator_category, std::bidirectional_iterat… in f()
|
| /llvm-project/libcxx/test/std/ranges/range.factories/range.iota.view/iterator/ |
| H A D | member_typedefs.compile.pass.cpp | 62 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/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iterator/ |
| H A D | types.pass.cpp | 35 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/libcxx/test/std/ranges/range.factories/range.repeat.view/iterator/ |
| H A D | member_typedefs.compile.pass.cpp | 15 // using iterator_category = random_access_iterator_tag; 33 static_assert(std::same_as<Iter::iterator_category, std::random_access_iterator_tag>); in test() 44 static_assert(std::same_as<Iter::iterator_category, std::random_access_iterator_tag>); in test() 53 static_assert(std::same_as<Iter::iterator_category, std::random_access_iterator_tag>); in test() 62 static_assert(std::same_as<Iter::iterator_category, std::random_access_iterator_tag>); in test() 71 static_assert(std::same_as<Iter::iterator_category, std::random_access_iterator_tag>); in test() 80 static_assert(std::same_as<Iter::iterator_category, std::random_access_iterator_tag>); in test() 89 static_assert(std::same_as<Iter::iterator_category, std::random_access_iterator_tag>); in test() 98 static_assert(std::same_as<Iter::iterator_category, std::random_access_iterator_tag>); in test()
|
| /llvm-project/libcxx/test/std/ranges/range.adaptors/range.transform/iterator/ |
| H A D | types.pass.cpp | 13 // transform_view::<iterator>::iterator_category 22 concept HasIterCategory = requires { typename std::ranges::transform_view<V, F>::iterator_category; }; member in std::ranges::transform_view 28 static_assert(std::same_as<std::iterator_traits<int*>::iterator_category, std::random_access_iterator_tag>); in test() 33 static_assert(std::same_as<typename TIter::iterator_category, std::random_access_iterator_tag>); in test() 42 static_assert(std::same_as<typename TIter::iterator_category, std::random_access_iterator_tag>); in test() 51 static_assert(std::same_as<typename TIter::iterator_category, std::random_access_iterator_tag>); in test() 60 static_assert(std::same_as<typename TIter::iterator_category, std::input_iterator_tag>); // Note: this is now input_iterator_tag. in test() 69 static_assert(std::same_as<typename TIter::iterator_category, std::random_access_iterator_tag>); in test() 75 static_assert(std::same_as<typename CTIter::iterator_category, in test() 85 static_assert(std::same_as<typename TIter::iterator_category, st in test() [all...] |
| /llvm-project/libcxx/test/support/ |
| H A D | almost_satisfies_types.h | 33 using iterator_category = void; variable 54 using iterator_category = std::input_iterator_tag; variable 72 using iterator_category = std::input_iterator_tag; variable 156 using iterator_category = std::input_iterator_tag; variable 175 using iterator_category = std::forward_iterator_tag; variable 198 using iterator_category = std::forward_iterator_tag; variable 223 using iterator_category = std::bidirectional_iterator_tag; variable 242 using iterator_category = std::input_iterator_tag; variable 263 using iterator_category = std::contiguous_iterator_tag; variable 283 using iterator_category = std::input_iterator_tag; variable [all …]
|
| /llvm-project/libcxx/test/std/ranges/range.adaptors/range.elements/iterator/ |
| H A D | member_types.compile.pass.cpp | 47 concept HasIterCategory = requires { typename T::iterator_category; }; member in T 52 …tic_assert(std::same_as<ElementsIter<Range<forward_iterator<std::tuple<int>*>>>::iterator_category, 55 …sert(std::same_as<ElementsIter<Range<bidirectional_iterator<std::tuple<int>*>>>::iterator_category, 58 …sert(std::same_as<ElementsIter<Range<random_access_iterator<std::tuple<int>*>>>::iterator_category, 61 …_assert(std::same_as<ElementsIter<Range<contiguous_iterator<std::tuple<int>*>>>::iterator_category, 64 static_assert(std::same_as<ElementsIter<Range<std::tuple<int>*>>::iterator_category, // 70 static_assert(std::same_as<ElementsIter<Generator>::iterator_category, //
|
| /llvm-project/libcxx/include/__iterator/ |
| H A D | iterator_traits.h | 91 using _Apply _LIBCPP_NODEBUG = typename _ITER_TRAITS<_Iter>::iterator_category; 119 __test(__void_t<typename _Up::iterator_category>* = nullptr, 135 static true_type __test(typename _Up::iterator_category* = nullptr); 212 concept __has_member_iterator_category = requires { typename _Ip::iterator_category; }; 309 using type = typename _Ip::iterator_category; 336 using iterator_category = typename _Ip::iterator_category; 348 using iterator_category = typename __iterator_traits_iterator_category<_Ip>::type; 359 using iterator_category = output_iterator_tag; 385 typedef typename _Iter::iterator_category iterator_categor [all...] |
| H A D | move_iterator.h | 52 requires requires { typename iterator_traits<_Iter>::iterator_category; } 54 using iterator_category = 55 … _If< derived_from<typename iterator_traits<_Iter>::iterator_category, random_access_iterator_tag>, 57 typename iterator_traits<_Iter>::iterator_category >; 101 typename iterator_traits<_Iter>::iterator_category > 102 iterator_category;
|
| /llvm-project/libcxx/test/std/ranges/range.adaptors/range.zip/iterator/ |
| H A D | member_types.compile.pass.cpp | 34 concept HasIterCategory = requires { typename T::iterator_category; }; member in T 38 using iterator_category = std::input_iterator_tag; typedef 74 static_assert(std::is_same_v<Iter::iterator_category, std::input_iterator_tag>); in test() 86 static_assert(std::is_same_v<Iter::iterator_category, std::input_iterator_tag>); in test() 98 static_assert(std::is_same_v<Iter::iterator_category, std::input_iterator_tag>); in test() 108 static_assert(std::is_same_v<Iter::iterator_category, std::input_iterator_tag>); in test() 121 static_assert(std::is_same_v<Iter::iterator_category, std::input_iterator_tag>); in test() 174 static_assert(std::is_same_v<Iter::iterator_category, std::input_iterator_tag>); in test() 179 static_assert(std::is_same_v<ConstIter::iterator_category, std::input_iterator_tag>); in test()
|
| /llvm-project/libcxx/test/std/ranges/range.adaptors/range.chunk.by/range.chunk.by.iter/ |
| H A D | types.compile.pass.cpp | 62 …static_assert(std::same_as<ChunkByIteratorFor<forward_iterator<int*>>::iterator_category, std::inp… in test() 64 …std::same_as<ChunkByIteratorFor<bidirectional_iterator<int*>>::iterator_category, std::input_itera… in test() 66 …std::same_as<ChunkByIteratorFor<random_access_iterator<int*>>::iterator_category, std::input_itera… in test() 68 …std::same_as<ChunkByIteratorFor<contiguous_iterator<int*>>::iterator_category, std::input_iterator… in test() 69 … static_assert(std::same_as<ChunkByIteratorFor<int*>::iterator_category, std::input_iterator_tag>); in test()
|
| /llvm-project/libcxx/test/std/iterators/predef.iterators/iterators.common/ |
| H A D | iterator_traits.compile.pass.cpp | 40 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 D | types.h | 24 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/libcxx/test/libcxx/iterators/bounded_iter/ |
| H A D | types.compile.pass.cpp | 29 struct iterator_category : std::random_access_iterator_tag {}; 38 static_assert(std::is_same<BoundedIter1::iterator_category, Iterator::iterator_category>::value, ""); 48 static_assert(std::is_same<BoundedIter2::iterator_category, std::random_access_iterator_tag>::value, ""); 26 struct iterator_category : std::random_access_iterator_tag {}; global() struct
|
| /llvm-project/libcxx/test/std/iterators/iterator.requirements/iterator.concepts/iterator.concept.random.access/ |
| H A D | contiguous_iterator.compile.pass.cpp | 33 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/libcxx/test/std/iterators/predef.iterators/counted.iterator/ |
| H A D | iterator_traits.compile.pass.cpp | 29 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/libcxx/test/std/ranges/range.adaptors/range.join/range.join.iterator/ |
| H A D | member_types.compile.pass.cpp | 33 using iterator_category = std::input_iterator_tag; typedef 50 concept HasIterCategory = requires { typename T::iterator_category; }; member in T 59 static_assert(std::is_same_v<Iter::iterator_category, std::bidirectional_iterator_tag>); in test() 69 static_assert(std::is_same_v<Iter::iterator_category, std::forward_iterator_tag>); in test() 90 static_assert(std::is_same_v<Iter::iterator_category, std::forward_iterator_tag>); in test()
|
| /llvm-project/libcxx/test/std/iterators/iterator.primitives/iterator.basic/ |
| H A D | iterator.pass.cpp | 19 // typedef Category iterator_category; 41 static_assert((std::is_same<typename It::iterator_category, std::forward_iterator_tag>::value), ""); in test2() 53 static_assert((std::is_same<typename It::iterator_category, std::bidirectional_iterator_tag>::value), ""); in test3() 65 static_assert((std::is_same<typename It::iterator_category, std::random_access_iterator_tag>::value), ""); in test4() 77 static_assert((std::is_same<typename It::iterator_category, std::input_iterator_tag>::value), ""); in test5()
|
| /llvm-project/libcxx/test/libcxx/iterators/iterator.requirements/iterator.concepts/ |
| H A D | cpp20_iter_concepts.pass.cpp | 15 // (1.2) -- Otherwise, if the qualified-id ITER_TRAITS(I)::iterator_category is 32 using iterator_category = std::random_access_iterator_tag; 41 using iterator_category = OtherTag; 54 using iterator_category = OtherTagTwo; 75 // Otherwise, if the qualified-id ITER_TRAITS(I)::iterator_category is valid in main() 31 using iterator_category = std::random_access_iterator_tag; global() typedef 40 using iterator_category = OtherTag; global() typedef 53 using iterator_category = OtherTagTwo; global() typedef
|
| /llvm-project/libcxx/test/libcxx/ranges/range.utility.helpers/ |
| H A D | has_arrow.compile.pass.cpp | 19 typedef std::input_iterator_tag iterator_category; 38 typedef std::input_iterator_tag iterator_category; 57 typedef std::input_iterator_tag iterator_category; 18 typedef std::input_iterator_tag iterator_category; global() typedef 37 typedef std::input_iterator_tag iterator_category; global() typedef 56 typedef std::input_iterator_tag iterator_category; global() typedef
|
| /llvm-project/libcxx/test/std/ranges/range.adaptors/range.lazy.split/range.lazy.split.outer/ |
| H A D | types.compile.pass.cpp | 26 static_assert(std::same_as<typename OuterIter<ForwardView, ForwardView>::iterator_category, std::in… 29 concept NoIteratorCategory = !requires { typename OuterIter<Range, Pattern>::iterator_category; }; member in OuterIter<Range, Pattern>
|