Home
last modified time | relevance | path

Searched refs:forward_iterator_tag (Results 1 – 25 of 168) sorted by relevance

1234567

/llvm-project/libcxx/test/std/ranges/range.adaptors/range.lazy.split/
H A Dbegin.pass.cpp42 static_assert(std::is_same_v<decltype(it)::iterator_concept, std::forward_iterator_tag>); in test()
49 static_assert(std::is_same_v<decltype(it)::iterator_concept, std::forward_iterator_tag>); in test()
68 static_assert(std::is_same_v<decltype(it)::iterator_concept, std::forward_iterator_tag>); in test()
75 static_assert(std::is_same_v<decltype(it)::iterator_concept, std::forward_iterator_tag>); in test()
92 static_assert(std::is_same_v<decltype(it)::iterator_concept, std::forward_iterator_tag>); in test()
112 static_assert(std::is_same_v<decltype(it)::iterator_concept, std::forward_iterator_tag>); in test()
119 static_assert(std::is_same_v<decltype(it)::iterator_concept, std::forward_iterator_tag>); in test()
H A Dend.pass.cpp69 static_assert(std::is_same_v<decltype(it)::iterator_concept, std::forward_iterator_tag>); in test()
76 static_assert(std::is_same_v<decltype(it)::iterator_concept, std::forward_iterator_tag>); in test()
97 static_assert(std::is_same_v<decltype(it)::iterator_concept, std::forward_iterator_tag>); in test()
104 static_assert(std::is_same_v<decltype(it)::iterator_concept, std::forward_iterator_tag>); in test()
123 static_assert(std::is_same_v<decltype(it)::iterator_concept, std::forward_iterator_tag>); in test()
130 static_assert(std::is_same_v<decltype(it)::iterator_concept, std::forward_iterator_tag>); in test()
/llvm-project/libcxx/test/std/iterators/iterator.primitives/std.iterator.tags/
H A Dforward_iterator_tag.pass.cpp20 std::forward_iterator_tag tag; in main()
23 std::forward_iterator_tag>::value), ""); in main()
25 std::forward_iterator_tag>::value), ""); in main()
/llvm-project/libcxx/test/std/iterators/iterator.primitives/iterator.traits/
H A Dempty.verify.cpp
H A Diterator.pass.cpp34 typedef std::forward_iterator_tag iterator_category;
44 static_assert((std::is_same<It::iterator_category, std::forward_iterator_tag>::value), ""); in main()
H A Dcxx20_iterator_traits.compile.pass.cpp104 static_assert(testMutable<std::forward_list<int>::iterator, std::forward_iterator_tag, int>());
105 static_assert(testConst<std::forward_list<int>::const_iterator, std::forward_iterator_tag, int>());
122 using unordered_iterator_category = std::forward_iterator_tag;
160 static_assert(testConst<std::cregex_iterator, std::forward_iterator_tag, std::cmatch>());
161 static_assert(testConst<std::cregex_token_iterator, std::forward_iterator_tag, std::csub_match>());
283 static_assert(std::same_as<LegacyForwardTraits::iterator_category, std::forward_iterator_tag>);
536 static_assert(std::same_as<ForwardTestIteratorTraits::iterator_category, std::forward_iterator_tag>…
584 static_assert(std::same_as<Cpp17ForwardIteratorTraits::iterator_category, std::forward_iterator_tag
/llvm-project/libcxx/test/std/containers/sequences/vector.bool/
H A Dctor_exceptions.pass.cpp57 throwing_iterator<bool, std::forward_iterator_tag>(), throwing_iterator<bool, std::forward_iterator_tag>(2)); in operator *()
79 std::vector<bool> vec(throwing_iterator<bool, std::forward_iterator_tag>(), in check_new_delete_called()
80 throwing_iterator<bool, std::forward_iterator_tag>(2), in check_new_delete_called()
/llvm-project/libcxx/test/std/ranges/range.adaptors/range.filter/iterator/
H A Dtypes.compile.pass.cpp40 using iterator_concept = std::forward_iterator_tag;
71 …FilterIteratorFor<ForwardIteratorWithInputCategory>::iterator_concept, std::forward_iterator_tag>); in f()
72 …is_same_v<FilterIteratorFor<forward_iterator<int*>>::iterator_concept, std::forward_iterator_tag>); in f()
84 …s_same_v<FilterIteratorFor<forward_iterator<int*>>::iterator_category, std::forward_iterator_tag>); in f()
/llvm-project/libcxx/test/std/iterators/iterator.requirements/iterator.concepts/iterator.concept.forward/
H A Dforward_iterator.compile.pass.cpp34 using iterator_concept = std::forward_iterator_tag;
64 using iterator_concept = std::forward_iterator_tag;
78 using iterator_concept = std::forward_iterator_tag;
/llvm-project/libcxx/test/std/containers/sequences/vector/vector.cons/
H A Dexceptions.pass.cpp80 (throwing_iterator<int, std::forward_iterator_tag>()), throwing_iterator<int, std::forward_iterator_tag>(2)); in operator *()
102 std::vector<int> vec(throwing_iterator<int, std::forward_iterator_tag>(), in check_new_delete_called()
103 throwing_iterator<int, std::forward_iterator_tag>(2), in check_new_delete_called()
/llvm-project/libcxx/test/std/ranges/range.adaptors/range.join/range.join.iterator/
H A Dmember_types.compile.pass.cpp68 static_assert(std::is_same_v<Iter::iterator_concept, std::forward_iterator_tag>); in test()
69 static_assert(std::is_same_v<Iter::iterator_category, std::forward_iterator_tag>); in test()
89 static_assert(std::is_same_v<Iter::iterator_concept, 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/predef.iterators/iterators.common/
H A Diterator_traits.compile.pass.cpp101 static_assert(std::same_as<IterTraits::iterator_concept, std::forward_iterator_tag>); in test()
102 static_assert(std::same_as<IterTraits::iterator_category, std::forward_iterator_tag>); in test()
113 static_assert(std::same_as<IterTraits::iterator_concept, std::forward_iterator_tag>); in test()
114 static_assert(std::same_as<IterTraits::iterator_category, std::forward_iterator_tag>); in test()
/llvm-project/libcxx/test/std/ranges/range.utility/range.subrange/
H A Dtypes.h32 typedef std::forward_iterator_tag iterator_category;
61 typedef std::forward_iterator_tag iterator_category;
99 typedef std::forward_iterator_tag iterator_category;
132 typedef std::forward_iterator_tag iterator_category;
/llvm-project/libcxx/test/std/iterators/iterator.requirements/iterator.concepts/iterator.concept.bidir/
H A Dbidirectional_iterator.compile.pass.cpp52 using iterator_category = std::forward_iterator_tag;
69 using iterator_concept = std::forward_iterator_tag;
/llvm-project/libcxx/include/__iterator/
H A Diterator_traits.h71 struct _LIBCPP_TEMPLATE_VIS forward_iterator_tag : public input_iterator_tag {};
72 struct _LIBCPP_TEMPLATE_VIS bidirectional_iterator_tag : public forward_iterator_tag {};
295 // `forward_iterator_tag` if `I` satisfies `cpp17-forward-iterator`, or otherwise
298 using type = forward_iterator_tag;
438 __has_iterator_category_convertible_to<_Tp, forward_iterator_tag>;
476 !__has_iterator_category_convertible_to<_Tp, forward_iterator_tag>::value>;
481 __has_iterator_category_convertible_to<_Tp, forward_iterator_tag>::value &&
69 struct _LIBCPP_TEMPLATE_VIS forward_iterator_tag : public input_iterator_tag {}; global() struct
/llvm-project/pstl/test/std/algorithms/alg.modifying.operations/alg.reverse/
H A Dreverse.pass.cpp41 …typename std::enable_if<!is_same_iterator_category<Iterator1, std::forward_iterator_tag>::value>::…
56 …typename std::enable_if<is_same_iterator_category<Iterator1, std::forward_iterator_tag>::value>::t…
/llvm-project/libcxx/test/std/ranges/range.factories/range.iota.view/iterator/
H A Dmember_typedefs.compile.pass.cpp134 static_assert(std::same_as<Iter::iterator_concept, std::forward_iterator_tag>); in test()
150 static_assert(std::same_as<Iter::iterator_concept, std::forward_iterator_tag>); in test()
158 static_assert(std::same_as<Iter::iterator_concept, std::forward_iterator_tag>); in test()
/llvm-project/libcxx/test/std/iterators/iterator.primitives/iterator.basic/
H A Diterator.pass.cpp36 typedef std::iterator<std::forward_iterator_tag, T> It; in test2()
41 static_assert((std::is_same<typename It::iterator_category, std::forward_iterator_tag>::value), ""); in test2()
/llvm-project/libcxx/test/std/ranges/range.adaptors/range.elements/iterator/
H A Dmember_types.compile.pass.cpp31 std::forward_iterator_tag>);
53 std::forward_iterator_tag>);
/llvm-project/libcxx/include/__ranges/
H A Dfilter_view.h122 _If<derived_from<_Cat, forward_iterator_tag>,
123 forward_iterator_tag,
138 forward_iterator_tag,
/llvm-project/libcxx/include/__algorithm/
H A Dunique_copy.h104 …is_base_of<forward_iterator_tag, typename iterator_traits<_InputIterator>::iterator_category>::val… in unique_copy()
107 …is_base_of<forward_iterator_tag, typename iterator_traits<_OutputIterator>::iterator_category>::va… in unique_copy()
H A Dstable_partition.h42 forward_iterator_tag __fit) { in __stable_partition_impl()
120 __stable_partition_impl(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred, forward_iterator_tag) { in __stable_partition_impl()
144 std::move(__first), std::move(__last), __pred, __len, __p, forward_iterator_tag()); in __stable_partition_impl()
119 __stable_partition_impl(_ForwardIterator __first,_ForwardIterator __last,_Predicate __pred,forward_iterator_tag) __stable_partition_impl() argument
/llvm-project/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iterator/
H A Dtypes.pass.cpp67 typedef std::forward_iterator_tag iterator_category;
149 …ypename std::move_iterator<forward_iterator<char*>>::iterator_concept, std::forward_iterator_tag>); in main()
/llvm-project/libcxx/test/std/ranges/range.adaptors/range.transform/iterator/
H A Dtypes.pass.cpp93 static_assert(std::same_as<typename TIter::iterator_concept, std::forward_iterator_tag>); in test()
94 static_assert(std::same_as<typename TIter::iterator_category, std::forward_iterator_tag>);
/llvm-project/clang/test/SemaCXX/
H A Dcrashes.cpp198 struct forward_iterator_tag : public input_iterator_tag {}; struct
205 …arT* _S_construct(_FwdIterator __beg, _FwdIterator __end, const _Alloc& __a, forward_iterator_tag);

1234567