Lines Matching refs:__count
255 constexpr explicit span(_It __first, size_type __count)
257 (void)__count;
258 _LIBCPP_ASSERT(_Extent == __count, "size mismatch in span's constructor (iterator, len)");
332 constexpr span<element_type, dynamic_extent> first(size_type __count) const noexcept
334 _LIBCPP_ASSERT(__count <= size(), "span<T, N>::first(count): count out of range");
335 return {data(), __count};
339 constexpr span<element_type, dynamic_extent> last(size_type __count) const noexcept
341 _LIBCPP_ASSERT(__count <= size(), "span<T, N>::last(count): count out of range");
342 return {data() + size() - __count, __count};
360 subspan(size_type __offset, size_type __count = dynamic_extent) const noexcept
363 …_LIBCPP_ASSERT(__count <= size() || __count == dynamic_extent, "span<T, N>::subspan(offset, count…
364 if (__count == dynamic_extent)
366 …_LIBCPP_ASSERT(__count <= size() - __offset, "span<T, N>::subspan(offset, count): offset + count o…
367 return {data() + __offset, __count};
452 constexpr span(_It __first, size_type __count)
453 : __data{_VSTD::to_address(__first)}, __size{__count} {}
513 constexpr span<element_type, dynamic_extent> first(size_type __count) const noexcept
515 _LIBCPP_ASSERT(__count <= size(), "span<T>::first(count): count out of range");
516 return {data(), __count};
520 constexpr span<element_type, dynamic_extent> last (size_type __count) const noexcept
522 _LIBCPP_ASSERT(__count <= size(), "span<T>::last(count): count out of range");
523 return {data() + size() - __count, __count};
537 subspan(size_type __offset, size_type __count = dynamic_extent) const noexcept
540 …_LIBCPP_ASSERT(__count <= size() || __count == dynamic_extent, "span<T>::subspan(offset, count): c…
541 if (__count == dynamic_extent)
543 …_LIBCPP_ASSERT(__count <= size() - __offset, "span<T>::subspan(offset, count): offset + count out …
544 return {data() + __offset, __count};