Lines Matching refs:__count
217 _LIBCPP_INLINE_VISIBILITY constexpr span(pointer __ptr, index_type __count) : __data{__ptr}
218 …{ (void)__count; _LIBCPP_ASSERT(_Extent == __count, "size mismatch in span's constructor (ptr, len…
278 constexpr span<element_type, dynamic_extent> first(index_type __count) const noexcept
280 … _LIBCPP_ASSERT(__count >= 0 && __count <= size(), "Count out of range in span::first(count)");
281 return {data(), __count};
285 constexpr span<element_type, dynamic_extent> last(index_type __count) const noexcept
287 … _LIBCPP_ASSERT(__count >= 0 && __count <= size(), "Count out of range in span::last(count)");
288 return {data() + size() - __count, __count};
303 subspan(index_type __offset, index_type __count = dynamic_extent) const noexcept
306 …_LIBCPP_ASSERT((__count >= 0 && __count <= size()) || __count == dynamic_extent, "Count out of r…
307 if (__count == dynamic_extent)
309 …_LIBCPP_ASSERT(__offset + __count <= size(), "count + offset out of range in span::subspan(offset,…
310 return {data() + __offset, __count};
387 …INE_VISIBILITY constexpr span(pointer __ptr, index_type __count) : __data{__ptr}, __size{__count} …
444 constexpr span<element_type, dynamic_extent> first(index_type __count) const noexcept
446 … _LIBCPP_ASSERT(__count >= 0 && __count <= size(), "Count out of range in span::first(count)");
447 return {data(), __count};
451 constexpr span<element_type, dynamic_extent> last (index_type __count) const noexcept
453 … _LIBCPP_ASSERT(__count >= 0 && __count <= size(), "Count out of range in span::last(count)");
454 return {data() + size() - __count, __count};
468 subspan(index_type __offset, index_type __count = dynamic_extent) const noexcept
471 …_LIBCPP_ASSERT((__count >= 0 && __count <= size()) || __count == dynamic_extent, "count out of r…
472 if (__count == dynamic_extent)
474 …_LIBCPP_ASSERT(__offset + __count <= size(), "Offset + count out of range in span::subspan(offset,…
475 return {data() + __offset, __count};