| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.take/sentinel/ |
| H A D | ctor.pass.cpp | 30 using Sentinel = std::ranges::sentinel_t<TakeView>; in test() typedef 31 Sentinel s; in test() 39 using Sentinel = std::ranges::sentinel_t<TakeView>; in test() typedef 41 static_assert(std::is_convertible_v<Sentinel, ConstSentinel>); in test() 43 Sentinel s = tv.end(); in test() 55 using Sentinel = std::ranges::sentinel_t<TakeView>; in test() typedef 57 static_assert( std::is_constructible_v<Sentinel, sentinel_wrapper<int*>>); in test() 58 static_assert(!std::is_convertible_v<sentinel_wrapper<int*>, Sentinel>); in test() 59 auto s = Sentinel(sw1); in test()
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.utility/range.subrange/ |
| H A D | ctor.default.pass.cpp | 34 struct Sentinel { struct 35 friend bool operator==(NoDefaultIterator const&, Sentinel const&); 36 friend bool operator==(Sentinel const&, NoDefaultIterator const&); 37 friend bool operator!=(NoDefaultIterator const&, Sentinel const&); 38 friend bool operator!=(Sentinel const&, NoDefaultIterator const&); 43 …td::is_default_constructible_v<std::ranges::subrange<NoDefaultIterator, Sentinel, std::ranges::sub… in test() 44 …td::is_default_constructible_v<std::ranges::subrange<NoDefaultIterator, Sentinel, std::ranges::sub… in test()
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.zip/sentinel/ |
| H A D | eq.pass.cpp | 95 using Sentinel = std::ranges::sentinel_t<decltype(v)>; in test() typedef 97 static_assert(!std::is_same_v<Sentinel, ConstSentinel>); in test() 99 static_assert(EqualComparable<Iter, Sentinel>); in test() 100 static_assert(!EqualComparable<ConstIter, Sentinel>); in test() 120 using Sentinel = std::ranges::sentinel_t<decltype(v)>; in test() typedef 122 static_assert(!std::is_same_v<Sentinel, ConstSentinel>); in test() 124 static_assert(EqualComparable<Iter, Sentinel>); in test() 125 static_assert(EqualComparable<ConstIter, Sentinel>); in test() 139 using Sentinel = std::ranges::sentinel_t<decltype(v)>; in test() typedef 143 static_assert(EqualComparable<Iter, Sentinel>); in test() [all …]
|
| H A D | minus.pass.cpp | 168 using Sentinel = std::ranges::sentinel_t<decltype(v)>; in test() typedef 170 static_assert(!std::is_same_v<Sentinel, ConstSentinel>); in test() 172 static_assert(HasMinus<Iter, Sentinel>); in test() 173 static_assert(HasMinus<Sentinel, Iter>); in test() 187 static_assert(!HasMinus<ConstIter, Sentinel>); in test() 188 static_assert(!HasMinus<Sentinel, ConstIter>); in test() 200 using Sentinel = std::ranges::sentinel_t<decltype(v)>; in test() typedef 204 static_assert(HasMinus<Iter, Sentinel>); in test() 205 static_assert(HasMinus<Sentinel, Iter>); in test() 210 static_assert(HasMinus<ConstIter, Sentinel>); in test() [all …]
|
| H A D | ctor.default.pass.cpp | 32 using Sentinel = std::ranges::sentinel_t<R>; in test() typedef 33 static_assert(!std::is_same_v<Sentinel, std::ranges::iterator_t<R>>); in test() 37 Sentinel s1; in test() 40 Sentinel s2 = {}; in test()
|
| /llvm-project-15.0.7/clang/test/Modules/ |
| H A D | concept.cppm | 37 template <__integer_like _Tp, C<_Tp> Sentinel> 38 constexpr _Tp operator()(_Tp &&__t, Sentinel &&last) const { 42 template <template <class> class H, class S, C<H<S>> Sentinel> 43 constexpr H<S> operator()(H<S> &&__s, Sentinel &&last) const { 49 template <__integer_like _Tp, __integer_like _Up, C<_Tp> Sentinel> 50 constexpr _Tp operator()(_Tp &&__t, _Up _u, Sentinel &&last) const { 54 template <__integer_like _Tp, __integer_like _Up, C<_Up> Sentinel> 55 constexpr _Tp operator()(_Tp &&__t, _Up _u, Sentinel &&last) const {
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | simple_ilist.h | 87 ilist_sentinel<OptionsT> Sentinel; variable 117 iterator begin() { return ++iterator(Sentinel); } in begin() 118 const_iterator begin() const { return ++const_iterator(Sentinel); } in begin() 119 iterator end() { return iterator(Sentinel); } in end() 120 const_iterator end() const { return const_iterator(Sentinel); } in end() 121 reverse_iterator rbegin() { return ++reverse_iterator(Sentinel); } in rbegin() 123 return ++const_reverse_iterator(Sentinel); in rbegin() 125 reverse_iterator rend() { return reverse_iterator(Sentinel); } in rend() 127 return const_reverse_iterator(Sentinel); in rend() 131 LLVM_NODISCARD bool empty() const { return Sentinel.empty(); } in empty() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.filter/iterator/ |
| H A D | compare.pass.cpp | 30 using Sentinel = sentinel_wrapper<Iterator>; in test() typedef 31 using View = minimal_view<Iterator, Sentinel>; in test() 36 View view{Iterator(begin), Sentinel(Iterator(end))}; in test() 77 using Sentinel = sentinel_wrapper<Iterator>; in tests() typedef 78 using FilterView = std::ranges::filter_view<minimal_view<Iterator, Sentinel>, AlwaysTrue>; in tests()
|
| H A D | ctor.parent_iter.pass.cpp | 22 template <class Iterator, class Sentinel = sentinel_wrapper<Iterator>> 24 using View = minimal_view<Iterator, Sentinel>; in test() 29 View view(Iterator(array.begin()), Sentinel(Iterator(array.end()))); in test()
|
| H A D | iter_move.pass.cpp | 26 using Sentinel = sentinel_wrapper<Iterator>; in test() typedef 27 using View = minimal_view<Iterator, Sentinel>; in test() 32 View view{Iterator(begin), Sentinel(Iterator(end))}; in test()
|
| H A D | deref.pass.cpp | 25 template <class Iterator, class ValueType = int, class Sentinel = sentinel_wrapper<Iterator>> 27 using View = minimal_view<Iterator, Sentinel>; in test() 32 View view{Iterator(begin), Sentinel(Iterator(end))}; in test()
|
| H A D | base.pass.cpp | 25 template <class Iterator, class Sentinel = sentinel_wrapper<Iterator>> 27 using View = minimal_view<Iterator, Sentinel>; in test() 32 View view{Iterator(begin), Sentinel(Iterator(end))}; in test()
|
| H A D | iter_swap.pass.cpp | 37 using Sentinel = sentinel_wrapper<Iterator>; in test() typedef 38 using View = minimal_view<Iterator, Sentinel>; in test() 43 View view{Iterator(begin), Sentinel(Iterator(end))}; in test()
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.filter/sentinel/ |
| H A D | base.pass.cpp | 23 template <class Iterator, class Sentinel = sentinel_wrapper<Iterator>> 25 using View = minimal_view<Iterator, Sentinel>; in test() 30 View view{Iterator(begin), Sentinel(Iterator(end))}; in test() 38 std::same_as<Sentinel> decltype(auto) result = sent.base(); in test()
|
| H A D | compare.pass.cpp | 23 template <class Iterator, class Sentinel = sentinel_wrapper<Iterator>> 25 using View = minimal_view<Iterator, Sentinel>; in test() 30 View v(Iterator(array.begin()), Sentinel(Iterator(array.end()))); in test() 38 View v(Iterator(array.begin()), Sentinel(Iterator(array.end()))); in test()
|
| H A D | ctor.parent.pass.cpp | 23 template <class Iterator, class Sentinel = sentinel_wrapper<Iterator>> 25 using View = minimal_view<Iterator, Sentinel>; in test() 30 View view{Iterator(begin), Sentinel(Iterator(end))}; in test()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/ |
| H A D | make_shared.array.unbounded.pass.cpp | 314 struct Sentinel : ThrowOnConstruction, DestroyInReverseOrder { }; in main() struct 318 using Array = Sentinel[]; in main() 331 using Array = Sentinel[][3]; in main() 344 using Array = Sentinel[][3][2]; in main() 359 using Array = Sentinel[]; in main() 363 Sentinel init; in main() 374 using Array = Sentinel[][3]; in main() 378 Sentinel init[3] = {}; in main() 389 using Array = Sentinel[][3][2]; in main() 393 Sentinel init[3][2] = {}; in main()
|
| H A D | make_shared.array.bounded.pass.cpp | 273 struct Sentinel : ThrowOnConstruction, DestroyInReverseOrder { }; in main() struct 277 using Array = Sentinel[8]; in main() 290 using Array = Sentinel[8][3]; in main() 303 using Array = Sentinel[8][3][2]; in main() 318 using Array = Sentinel[8]; in main() 322 Sentinel init; in main() 333 using Array = Sentinel[8][3]; in main() 337 Sentinel init[3] = {}; in main() 348 using Array = Sentinel[8][3][2]; in main() 352 Sentinel init[3][2] = {}; in main()
|
| H A D | allocate_shared.array.bounded.pass.cpp | 274 struct Sentinel : ThrowOnConstruction, DestroyInReverseOrder { }; in main() struct 278 using Array = Sentinel[8]; in main() 291 using Array = Sentinel[8][3]; in main() 304 using Array = Sentinel[8][3][2]; in main() 319 using Array = Sentinel[8]; in main() 323 Sentinel init; in main() 334 using Array = Sentinel[8][3]; in main() 338 Sentinel init[3] = {}; in main() 349 using Array = Sentinel[8][3][2]; in main() 353 Sentinel init[3][2] = {}; in main()
|
| H A D | allocate_shared.array.unbounded.pass.cpp | 316 struct Sentinel : ThrowOnConstruction, DestroyInReverseOrder { }; in main() struct 320 using Array = Sentinel[]; in main() 333 using Array = Sentinel[][3]; in main() 346 using Array = Sentinel[][3][2]; in main() 361 using Array = Sentinel[]; in main() 365 Sentinel init; in main() 376 using Array = Sentinel[][3]; in main() 380 Sentinel init[3] = {}; in main() 391 using Array = Sentinel[][3][2]; in main() 395 Sentinel init[3][2] = {}; in main()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/dex/ |
| H A D | Token.h | 68 Sentinel, enumerator 92 case Kind::Sentinel: 118 return {clang::clangd::dex::Token::Kind::Sentinel, "EmptyKey"}; 122 return {clang::clangd::dex::Token::Kind::Sentinel, "TombstoneKey"};
|
| H A D | Trigram.h | 41 enum class Sentinel { Tombstone = 4, Empty = 5 }; enum 42 Trigram(Sentinel S) : Data{0, 0, 0, static_cast<char>(S)} {} in Trigram() 94 return Trigram(Trigram::Sentinel::Empty); 97 return Trigram(Trigram::Sentinel::Tombstone);
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.filter/ |
| H A D | types.h | 34 template <class Iterator, class Sentinel> 36 constexpr explicit minimal_view(Iterator it, Sentinel sent) in minimal_view() 45 constexpr Sentinel end() const { return Sentinel(sent_); } in end() 49 decltype(base(std::declval<Sentinel>())) sent_;
|
| H A D | begin.pass.cpp | 22 using Sentinel = sentinel_wrapper<Iterator>; typedef 25 constexpr Sentinel end() const { return Sentinel(Iterator(end_)); } in end() 36 using Sentinel = sentinel_wrapper<Iterator>; typedef 39 constexpr Sentinel end() const { return Sentinel(Iterator(end_)); } in end()
|
| /llvm-project-15.0.7/libcxx/test/std/containers/views/views.span/span.cons/ |
| H A D | iterator_sentinel.pass.cpp | 23 template <class T, class Sentinel> 26 auto s1 = std::span<T>(std::begin(val), Sentinel(std::end(val))); in test_ctor() 27 auto s2 = std::span<T, 2>(std::begin(val), Sentinel(std::end(val))); in test_ctor()
|