Kanzi 3.9.10
kanzi::span< T > Class Template Reference

#include <kanzi/core/cpp/span.hpp>

Public Types

using const_iterator
 
using const_pointer
 
using const_reference
 
using difference_type
 
using element_type
 
using iterator
 
using pointer
 
using reference
 
using size_type
 
using value_type
 

Public Member Functions

constexpr reference back () const
 
constexpr iterator begin () const noexcept
 
constexpr const_iterator cbegin () const noexcept
 
constexpr const_iterator cend () const noexcept
 
constexpr pointer data () const noexcept
 
KZ_NO_DISCARD constexpr bool empty () const noexcept
 
constexpr iterator end () const noexcept
 
constexpr span< element_typefirst (size_type count) const
 
constexpr reference front () const
 
constexpr span< element_typelast (size_type count) const
 
spanoperator= (const span &) noexcept=default
 
constexpr reference operator[] (size_type i) const
 
constexpr size_type size () const noexcept
 
constexpr size_type size_bytes () const noexcept
 
constexpr span () noexcept=default
 
template<size_t N>
constexpr span (array< T, N > &arr)
 
template<size_t N>
constexpr span (const array< T, N > &arr)
 
constexpr span (const span &) noexcept=default
 
constexpr span (pointer first, pointer last)
 
constexpr span (pointer ptr, size_type count)
 
template<size_t N>
constexpr span (T(&data)[N]) noexcept
 
constexpr span< Tsubspan (size_t offset, size_t count=numeric_limits< size_t >::max()) const
 

Member Typedef Documentation

◆ element_type

template<typename T >
using kanzi::span< T >::element_type

◆ value_type

template<typename T >
using kanzi::span< T >::value_type

◆ size_type

template<typename T >
using kanzi::span< T >::size_type

◆ difference_type

template<typename T >
using kanzi::span< T >::difference_type

◆ pointer

template<typename T >
using kanzi::span< T >::pointer

◆ const_pointer

template<typename T >
using kanzi::span< T >::const_pointer

◆ reference

template<typename T >
using kanzi::span< T >::reference

◆ const_reference

template<typename T >
using kanzi::span< T >::const_reference

◆ iterator

template<typename T >
using kanzi::span< T >::iterator

◆ const_iterator

template<typename T >
using kanzi::span< T >::const_iterator

Constructor & Destructor Documentation

◆ span() [1/7]

template<typename T >
constexpr kanzi::span< T >::span ( )
constexprdefaultnoexcept

◆ span() [2/7]

template<typename T >
constexpr kanzi::span< T >::span ( pointer ptr,
size_type count )
inlineconstexpr

◆ span() [3/7]

template<typename T >
constexpr kanzi::span< T >::span ( pointer first,
pointer last )
inlineconstexpr

◆ span() [4/7]

template<typename T >
template<size_t N>
constexpr kanzi::span< T >::span ( T(&) data[N])
inlineconstexprnoexcept

◆ span() [5/7]

template<typename T >
template<size_t N>
constexpr kanzi::span< T >::span ( array< T, N > & arr)
inlineconstexpr

◆ span() [6/7]

template<typename T >
template<size_t N>
constexpr kanzi::span< T >::span ( const array< T, N > & arr)
inlineconstexpr

◆ span() [7/7]

template<typename T >
constexpr kanzi::span< T >::span ( const span< T > & )
constexprdefaultnoexcept

Member Function Documentation

◆ operator=()

template<typename T >
span & kanzi::span< T >::operator= ( const span< T > & )
defaultnoexcept

◆ begin()

template<typename T >
constexpr iterator kanzi::span< T >::begin ( ) const
inlineconstexprnoexcept

◆ cbegin()

template<typename T >
constexpr const_iterator kanzi::span< T >::cbegin ( ) const
inlineconstexprnoexcept

◆ end()

template<typename T >
constexpr iterator kanzi::span< T >::end ( ) const
inlineconstexprnoexcept

◆ cend()

template<typename T >
constexpr const_iterator kanzi::span< T >::cend ( ) const
inlineconstexprnoexcept

◆ front()

template<typename T >
constexpr reference kanzi::span< T >::front ( ) const
inlineconstexpr

◆ back()

template<typename T >
constexpr reference kanzi::span< T >::back ( ) const
inlineconstexpr

◆ operator[]()

template<typename T >
constexpr reference kanzi::span< T >::operator[] ( size_type i) const
inlineconstexpr

◆ data()

template<typename T >
constexpr pointer kanzi::span< T >::data ( ) const
inlineconstexprnoexcept

◆ size()

template<typename T >
constexpr size_type kanzi::span< T >::size ( ) const
inlineconstexprnoexcept

◆ size_bytes()

template<typename T >
constexpr size_type kanzi::span< T >::size_bytes ( ) const
inlineconstexprnoexcept

◆ empty()

template<typename T >
KZ_NO_DISCARD constexpr bool kanzi::span< T >::empty ( ) const
inlineconstexprnoexcept

◆ first()

template<typename T >
constexpr span< element_type > kanzi::span< T >::first ( size_type count) const
inlineconstexpr

◆ last()

template<typename T >
constexpr span< element_type > kanzi::span< T >::last ( size_type count) const
inlineconstexpr

◆ subspan()

template<typename T >
constexpr span< T > kanzi::span< T >::subspan ( size_t offset,
size_t count = numeric_limits<size_t>::max() ) const
inlineconstexpr

The documentation for this class was generated from the following file: