Lines Matching refs:end

21 using RangeEndT = decltype(std::ranges::end);
44 constexpr const int *end() const { return &x; } in end() function
60 ASSERT_SAME_TYPE(decltype(std::ranges::end(x)), int**); in testReturnTypes()
65 ASSERT_SAME_TYPE(decltype(std::ranges::end(x)), int(*)[2]); in testReturnTypes()
71 sentinel_wrapper<char*>& end(); in testReturnTypes()
73 sentinel_wrapper<short*>& end() const; in testReturnTypes()
75 ASSERT_SAME_TYPE(decltype(std::ranges::end(x)), sentinel_wrapper<char*>); in testReturnTypes()
83 assert(std::ranges::end(a) == a + 2); in testArray()
87 assert(std::ranges::end(b) == b + 2); in testArray()
91 assert(std::ranges::end(c) == c + 2); in testArray()
99 int end() const;
105 const void *end() const;
114 PtrConvertible end() const;
119 constexpr const int *end();
126 constexpr int *end() { return &x; } in end() function
135 constexpr int *end() const { return &globalBuff[0]; } in end() function
144 constexpr const int *end() const { return &x; } in end() function
145 friend constexpr int *end(EndMemberFunction const&);
151 Empty end() const;
158 constexpr const Empty *end() const { return &x; } in end() function
163 assert(std::ranges::end(a) == &a.x); in testEndMember()
167 assert(std::ranges::end(b) == &b.x); in testEndMember()
171 assert(std::ranges::end(std::move(c)) == &globalBuff[0]); in testEndMember()
175 assert(std::ranges::end(d) == &d.x); in testEndMember()
179 assert(std::ranges::end(e) == &e.x); in testEndMember()
188 friend constexpr const int *end(EndFunction const& bf) { return &bf.x; } in end() function
202 friend constexpr int end(EndFunctionReturnsInt const&);
208 friend constexpr void *end(EndFunctionReturnsVoidPtr const&);
214 friend constexpr Empty end(EndFunctionReturnsEmpty const&);
220 friend constexpr PtrConvertible end(EndFunctionReturnsPtrConvertible const&);
225 friend constexpr const int *end(NoBeginFunction const&);
231 friend constexpr int *end(EndFunctionByValue) { return &globalBuff[1]; } in end() function
237 friend constexpr int *end(EndFunctionEnabledBorrowing) { return &globalBuff[2]; } in end() function
245 friend constexpr const Empty *end(EndFunctionReturnsEmptyPtr const& bf) { return &bf.x; } in end() function
250 int end; member
252 friend constexpr const int *end(EndFunctionWithDataMember const& bf) { return &bf.x; } in end() function
258 friend constexpr const int *end(EndFunctionWithPrivateEndMember const& bf) { return &bf.y; } in end() function
260 const int *end() const;
266 friend constexpr const int *end(BeginMemberEndFunction const& bf) { return &bf.x; } in end() function
271 assert(std::ranges::end(a) == &a.x); in testEndFunction()
278 assert(std::ranges::end(b) == &globalBuff[1]); in testEndFunction()
282 assert(std::ranges::end(std::move(c)) == &globalBuff[2]); in testEndFunction()
286 assert(std::ranges::end(d) == &d.x); in testEndFunction()
293 assert(std::ranges::end(e) == &e.x); in testEndFunction()
300 assert(std::ranges::end(f) == &f.y); in testEndFunction()
307 assert(std::ranges::end(g) == &g.x); in testEndFunction()
317 ASSERT_NOEXCEPT(std::ranges::end(std::declval<int (&)[10]>()));
322 ThrowingIterator<int> end() const noexcept; // auto(t.end()) doesn't throw
324 static_assert(noexcept(std::ranges::end(ntme)));
329 friend ThrowingIterator<int> end(NoThrowADLEnd&) noexcept; // auto(end(t)) doesn't throw
330 friend ThrowingIterator<int> end(const NoThrowADLEnd&) noexcept;
332 static_assert(noexcept(std::ranges::end(ntae)));
337 ThrowingIterator<int>& end() const noexcept; // auto(t.end()) may throw
339 static_assert(!noexcept(std::ranges::end(ntmerr)));
344 auto end() const noexcept -> int(&)[10];
346 static_assert(noexcept(std::ranges::end(erar)));