• Home
  • Raw
  • Download

Lines Matching refs:dynamic_extent

73 constexpr const std::ptrdiff_t dynamic_extent = -1;
75 template <class ElementType, std::ptrdiff_t Extent = dynamic_extent>
113 : public std::integral_constant<bool, From == To || From == gsl::dynamic_extent ||
114 To == gsl::dynamic_extent>
316 static_assert(Other == Ext || Other == dynamic_extent,
327 class extent_type<dynamic_extent>
347 using type = span<ElementType, Count != dynamic_extent
349 : (Extent != dynamic_extent ? Extent - Offset : Extent)>;
469 template <std::ptrdiff_t Offset, std::ptrdiff_t Count = dynamic_extent>
475 (Count == dynamic_extent || (Count >= 0 && Offset + Count <= size())));
477 return {data() + Offset, Count == dynamic_extent ? size() - Offset : Count};
480 constexpr span<element_type, dynamic_extent> first(index_type count) const
486 constexpr span<element_type, dynamic_extent> last(index_type count) const
488 return make_subspan(size() - count, dynamic_extent, subspan_selector<Extent>{});
491 constexpr span<element_type, dynamic_extent> subspan(index_type offset,
492 index_type count = dynamic_extent) const
620 span<element_type, dynamic_extent> make_subspan(index_type offset, index_type count,
623 const span<element_type, dynamic_extent> tmp(*this);
628 span<element_type, dynamic_extent> make_subspan(index_type offset, index_type count,
629 subspan_selector<dynamic_extent>) const
633 if (count == dynamic_extent) { return {KnownNotNull{data() + offset}, size() - offset}; }
699 struct calculate_byte_size<ElementType, dynamic_extent>
700 : std::integral_constant<std::ptrdiff_t, dynamic_extent>