Lines Matching refs:_Count
259 template <ptrdiff_t _Count>
261 constexpr span<element_type, _Count> first() const noexcept
263 static_assert(_Count >= 0, "Count must be >= 0 in span::first()");
264 static_assert(_Count <= _Extent, "Count out of range in span::first()");
265 return {data(), _Count};
268 template <ptrdiff_t _Count>
270 constexpr span<element_type, _Count> last() const noexcept
272 static_assert(_Count >= 0, "Count must be >= 0 in span::last()");
273 static_assert(_Count <= _Extent, "Count out of range in span::last()");
274 return {data() + size() - _Count, _Count};
291 template <ptrdiff_t _Offset, ptrdiff_t _Count = dynamic_extent>
294 -> span<element_type, _Count != dynamic_extent ? _Count : _Extent - _Offset>
297 return {data() + _Offset, _Count == dynamic_extent ? size() - _Offset : _Count};
425 template <ptrdiff_t _Count>
427 constexpr span<element_type, _Count> first() const noexcept
429 static_assert(_Count >= 0, "Count must be >= 0 in span::first()");
430 _LIBCPP_ASSERT(_Count <= size(), "Count out of range in span::first()");
431 return {data(), _Count};
434 template <ptrdiff_t _Count>
436 constexpr span<element_type, _Count> last() const noexcept
438 static_assert(_Count >= 0, "Count must be >= 0 in span::last()");
439 _LIBCPP_ASSERT(_Count <= size(), "Count out of range in span::last()");
440 return {data() + size() - _Count, _Count};
457 template <ptrdiff_t _Offset, ptrdiff_t _Count = dynamic_extent>
462 …_LIBCPP_ASSERT(_Count == dynamic_extent || _Offset + _Count <= size(), "Count out of range in span…
463 return {data() + _Offset, _Count == dynamic_extent ? size() - _Offset : _Count};