Lines Matching refs:Count
27 template <typename Span, size_t Count>
30 LIBCPP_ASSERT((noexcept(sp.template last<Count>()))); in testConstexprSpan()
31 LIBCPP_ASSERT((noexcept(sp.last(Count)))); in testConstexprSpan()
32 auto s1 = sp.template last<Count>(); in testConstexprSpan()
33 auto s2 = sp.last(Count); in testConstexprSpan()
38 static_assert(S1::extent == Count, ""); in testConstexprSpan()
43 && std::equal(s1.begin(), s1.end(), sp.end() - Count); in testConstexprSpan()
47 template <typename Span, size_t Count>
50 LIBCPP_ASSERT((noexcept(sp.template last<Count>()))); in testRuntimeSpan()
51 LIBCPP_ASSERT((noexcept(sp.last(Count)))); in testRuntimeSpan()
52 auto s1 = sp.template last<Count>(); in testRuntimeSpan()
53 auto s2 = sp.last(Count); in testRuntimeSpan()
58 static_assert(S1::extent == Count, ""); in testRuntimeSpan()
62 assert(std::equal(s1.begin(), s1.end(), sp.end() - Count)); in testRuntimeSpan()