Lines Matching refs:rend
22 using RangeREndT = decltype(std::ranges::rend);
45 constexpr const int* rend() const { return &x; } in rend() function
61 ASSERT_SAME_TYPE(decltype(std::ranges::rend(x)), std::reverse_iterator<int**>); in testReturnTypes()
67 ASSERT_SAME_TYPE(decltype(std::ranges::rend(x)), std::reverse_iterator<int(*)[2]>); in testReturnTypes()
74 sentinel_wrapper<char*>& rend(); in testReturnTypes()
76 sentinel_wrapper<short*>& rend() const; in testReturnTypes()
78 ASSERT_SAME_TYPE(decltype(std::ranges::rend(x)), sentinel_wrapper<char*>); in testReturnTypes()
87 assert(std::ranges::rend(a).base() == a); in testArray()
91 assert(std::ranges::rend(b).base() == b); in testArray()
95 assert(std::ranges::rend(c).base() == c); in testArray()
103 int rend() const;
109 const void *rend() const;
118 PtrConvertible rend() const;
123 constexpr const int* rend();
130 constexpr int* rend() { return &x; } in rend() function
139 constexpr int* rend() const { return &globalBuff[0]; } in rend() function
148 constexpr const int* rend() const { return &x; } in rend() function
149 friend constexpr int* rend(REndMemberFunction const&);
155 Empty rend() const;
162 constexpr const Empty* rend() const { return &x; } in rend() function
167 assert(std::ranges::rend(a) == &a.x); in testREndMember()
171 assert(std::ranges::rend(b) == &b.x); in testREndMember()
175 assert(std::ranges::rend(std::move(c)) == &globalBuff[0]); in testREndMember()
179 assert(std::ranges::rend(d) == &d.x); in testREndMember()
183 assert(std::ranges::rend(e) == &e.x); in testREndMember()
192 friend constexpr const int* rend(REndFunction const& bf) { return &bf.x; } in rend() function
206 friend constexpr int rend(REndFunctionReturnsInt const&);
212 friend constexpr void* rend(REndFunctionReturnsVoidPtr const&);
218 friend constexpr Empty rend(REndFunctionReturnsEmpty const&);
224 friend constexpr PtrConvertible rend(REndFunctionReturnsPtrConvertible const&);
229 friend constexpr const int* rend(NoRBeginFunction const&);
235 friend constexpr int* rend(REndFunctionByValue) { return &globalBuff[1]; } in rend() function
241 friend constexpr int* rend(REndFunctionEnabledBorrowing) { return &globalBuff[2]; } in rend() function
249 friend constexpr const Empty* rend(REndFunctionReturnsEmptyPtr const& bf) { return &bf.x; } in rend() function
254 int rend; member
256 friend constexpr const int* rend(REndFunctionWithDataMember const& bf) { return &bf.x; } in rend() function
262 friend constexpr const int* rend(REndFunctionWithPrivateEndMember const& bf) { return &bf.y; } in rend() function
268 friend constexpr const int* rend(RBeginMemberEndFunction const& bf) { return &bf.x; } in rend() function
273 assert(std::ranges::rend(a) == &a.x); in testREndFunction()
280 assert(std::ranges::rend(b) == &globalBuff[1]); in testREndFunction()
284 assert(std::ranges::rend(std::move(c)) == &globalBuff[2]); in testREndFunction()
288 assert(std::ranges::rend(d) == &d.x); in testREndFunction()
295 assert(std::ranges::rend(e) == &e.x); in testREndFunction()
302 assert(std::ranges::rend(f) == &f.y); in testREndFunction()
309 assert(std::ranges::rend(g) == &g.x); in testREndFunction()
440 int* rend() const;
450 assert(base(std::ranges::rend(a).base()) == &a.b); in testBeginEnd()
452 assert(base(std::ranges::rend(aa).base()) == &aa.cb); in testBeginEnd()
457 assert(base(std::ranges::rend(b).base()) == &b.b); in testBeginEnd()
459 assert(base(std::ranges::rend(bb).base()) == &bb.cb); in testBeginEnd()
464 assert(base(std::ranges::rend(c).base()) == &c.b); in testBeginEnd()
466 assert(base(std::ranges::rend(cc).base()) == &cc.cb); in testBeginEnd()
471 assert(base(std::ranges::rend(d).base()) == &d.b); in testBeginEnd()
473 assert(base(std::ranges::rend(dd).base()) == &dd.cb); in testBeginEnd()
480 ASSERT_NOEXCEPT(std::ranges::rend(std::declval<int (&)[10]>()));
485 ThrowingIterator<int> rend() const noexcept; // auto(t.rend()) doesn't throw
487 static_assert(noexcept(std::ranges::rend(ntmre)));
492 friend ThrowingIterator<int> rend(NoThrowADLREnd&) noexcept; // auto(rend(t)) doesn't throw
493 friend ThrowingIterator<int> rend(const NoThrowADLREnd&) noexcept;
495 static_assert(noexcept(std::ranges::rend(ntare)));
500 ThrowingIterator<int>& rend() const noexcept; // auto(t.rend()) may throw
502 static_assert(!noexcept(std::ranges::rend(ntmrerr)));
507 auto rend() const noexcept -> int(&)[10];
509 static_assert(noexcept(std::ranges::rend(rerar)));
516 static_assert(noexcept(std::ranges::rend(ntbte)));
523 static_assert(!noexcept(std::ranges::rend(ntetb)));