cpp20::span

Summary

Constructors and Destructors

span()
span(It first, size_type count)
span(It first, size_type count)
span(It first, End end)
span(It first, End end)
span(element_type(&) arr[N])
span(U(&) arr[N])
span(std::array< U, N > & arr)
span(const std::array< U, N > & arr)
span(R && r)
span(R && r)
span(const cpp20::span< U, N > & s)
span(const cpp20::span< U, N > & s)
span(const span & s)
~span()

Public types

const_pointer using
const T *
const_reference using
const T &
difference_type using
ptrdiff_t
element_type using
T
iterator using
internal::span_iterator< T >
pointer using
T *
reference using
T &
reverse_iterator using
std::reverse_iterator< iterator >
size_type using
size_t
value_type using
std::remove_cv_t< T >

Public static attributes

extent = Extent
constexpr size_t

Public functions

back() const
constexpr reference
begin() const noexcept
constexpr iterator
data() const noexcept
constexpr pointer
empty() const
constexpr bool
end() const noexcept
constexpr iterator
front() const
constexpr reference
operator=(const span & s) noexcept=default
constexpr span &
operator[](size_type index) const
constexpr reference
rbegin() const noexcept
constexpr reverse_iterator
rend() const noexcept
constexpr reverse_iterator
size() const noexcept
constexpr size_type
size_bytes() const noexcept
constexpr size_type
subspan(size_type offset, size_type count) const
constexpr span< element_type, dynamic_extent >
subspan() const
constexpr span< element_type, E >

Public types

const_pointer

const T * const_pointer

const_reference

const T & const_reference

difference_type

ptrdiff_t difference_type

element_type

T element_type

iterator

internal::span_iterator< T > iterator

pointer

T * pointer

reference

T & reference

reverse_iterator

std::reverse_iterator< iterator > reverse_iterator

size_type

size_t size_type

value_type

std::remove_cv_t< T > value_type

Public static attributes

extent

constexpr size_t extent = Extent

Public functions

back

constexpr reference back() const 

begin

constexpr iterator begin() const noexcept

data

constexpr pointer data() const noexcept

empty

constexpr bool empty() const 

end

constexpr iterator end() const noexcept

front

constexpr reference front() const 

operator=

constexpr span & operator=(
  const span & s
) noexcept=default

operator[]

constexpr reference operator[](
  size_type index
) const 

rbegin

constexpr reverse_iterator rbegin() const noexcept

rend

constexpr reverse_iterator rend() const noexcept

size

constexpr size_type size() const noexcept

size_bytes

constexpr size_type size_bytes() const noexcept

span

constexpr span() noexcept

span

constexpr span(
  It first,
  size_type count
)

span

constexpr span(
  It first,
  size_type count
)

span

constexpr span(
  It first,
  End end
)

span

constexpr span(
  It first,
  End end
)

span

constexpr span(
  element_type(&) arr[N]
) noexcept

span

constexpr span(
  U(&) arr[N]
) noexcept

span

constexpr span(
  std::array< U, N > & arr
) noexcept

span

constexpr span(
  const std::array< U, N > & arr
) noexcept

span

constexpr span(
  R && r
)

span

constexpr span(
  R && r
)

span

constexpr span(
  const cpp20::span< U, N > & s
) noexcept

span

constexpr span(
  const cpp20::span< U, N > & s
) noexcept

span

constexpr span(
  const span & s
) noexcept=default

subspan

constexpr span< element_type, dynamic_extent > subspan(
  size_type offset,
  size_type count
) const 

subspan

constexpr span< element_type, E > subspan() const 

~span

 ~span() noexcept=default