• Home
  • Raw
  • Download

Lines Matching refs:dynamic_extent

20 inline constexpr ptrdiff_t dynamic_extent = -1;
23 template <class ElementType, ptrdiff_t Extent = dynamic_extent>
28 span<const byte, ((Extent == dynamic_extent) ? dynamic_extent :
32 span< byte, ((Extent == dynamic_extent) ? dynamic_extent :
37 template <class ElementType, ptrdiff_t Extent = dynamic_extent>
78 template <ptrdiff_t Offset, ptrdiff_t Count = dynamic_extent>
81 constexpr span<element_type, dynamic_extent> first(index_type count) const;
82 constexpr span<element_type, dynamic_extent> last(index_type count) const;
83 …constexpr span<element_type, dynamic_extent> subspan(index_type offset, index_type count = dynamic…
144 inline constexpr ptrdiff_t dynamic_extent = -1;
145 template <typename _Tp, ptrdiff_t _Extent = dynamic_extent> class span;
250 constexpr span(const span<_OtherElementType, dynamic_extent>& __other,
278 constexpr span<element_type, dynamic_extent> first(index_type __count) const noexcept
285 constexpr span<element_type, dynamic_extent> last(index_type __count) const noexcept
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};
302 constexpr span<element_type, dynamic_extent>
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)
361 class _LIBCPP_TEMPLATE_VIS span<_Tp, dynamic_extent> {
379 static constexpr index_type extent = dynamic_extent;
444 constexpr span<element_type, dynamic_extent> first(index_type __count) const noexcept
451 constexpr span<element_type, dynamic_extent> last (index_type __count) const noexcept
457 template <ptrdiff_t _Offset, ptrdiff_t _Count = dynamic_extent>
459 constexpr span<_Tp, dynamic_extent> subspan() const noexcept
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};
466 constexpr span<element_type, dynamic_extent>
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)
517 _LIBCPP_INLINE_VISIBILITY span<const byte, dynamic_extent> __as_bytes() const noexcept
520 _LIBCPP_INLINE_VISIBILITY span<byte, dynamic_extent> __as_writeable_bytes() const noexcept