Public Types | Public Member Functions | Private Attributes | List of all members
nonstd::span_lite::span< T, Extent > Class Template Reference

#include <span.hpp>

Public Types

enum  { extent = Extent }
 
typedef const_pointer const_iterator
 
typedef T const * const_pointer
 
typedef T const & const_reference
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef std::ptrdiff_t difference_type
 
typedef T element_type
 
typedef extent_t extent_type
 
typedef pointer iterator
 
typedef T * pointer
 
typedef T & reference
 
typedef std::reverse_iterator< iteratorreverse_iterator
 
typedef size_t size_type
 
typedef std11::remove_cv< T >::type value_type
 

Public Member Functions

span_constexpr_exp reference back () const span_noexcept
 
span_constexpr iterator begin () const span_noexcept
 
span_constexpr const_iterator cbegin () const span_noexcept
 
span_constexpr const_iterator cend () const span_noexcept
 
span_constexpr const_reverse_iterator crbegin () const span_noexcept
 
span_constexpr const_reverse_iterator crend () const span_noexcept
 
span_constexpr pointer data () const span_noexcept
 
span_nodiscard span_constexpr bool empty () const span_noexcept
 
span_constexpr iterator end () const span_noexcept
 
template<extent_type Count>
span_constexpr_exp span< element_type, Countfirst () const
 
span_constexpr_exp span< element_type, dynamic_extentfirst (size_type count) const
 
span_constexpr_exp reference front () const span_noexcept
 
template<extent_type Count>
span_constexpr_exp span< element_type, Countlast () const
 
span_constexpr_exp span< element_type, dynamic_extentlast (size_type count) const
 
span_constexpr14 spanoperator= (span const &other) span_noexcept
 
span_constexpr_exp reference operator[] (size_type idx) const
 
span_constexpr reverse_iterator rbegin () const span_noexcept
 
span_constexpr reverse_iterator rend () const span_noexcept
 
span_constexpr size_type size () const span_noexcept
 
span_constexpr size_type size_bytes () const span_noexcept
 
template<std::size_t N span_REQUIRES_T>
span_constexpr span (element_type(&arr)[N]) span_noexcept
 
span_constexpr_exp span (pointer first, pointer last)
 
span_constexpr_exp span (pointer ptr, size_type count)
 
span_constexpr span (span const &other) span_noexcept
 
template<class OtherElementType , extent_type OtherExtent span_REQUIRES_T>
span_constexpr_exp span (span< OtherElementType, OtherExtent > const &other) span_noexcept
 
 span_REQUIRES_0 ((Extent==0)||(Extent==dynamic_extent)) span_constexpr span() span_noexcept
 
span_constexpr std::ptrdiff_t ssize () const span_noexcept
 
template<size_type Offset, extent_type Count>
span_constexpr_exp span< element_type, Countsubspan () const
 
span_constexpr_exp span< element_type, dynamic_extentsubspan (size_type offset, size_type count=static_cast< size_type >(dynamic_extent)) const
 
 ~span () span_noexcept
 

Private Attributes

pointer data_
 
size_type size_
 

Detailed Description

template<class T, extent_t Extent>
class nonstd::span_lite::span< T, Extent >

Definition at line 581 of file span.hpp.

Member Typedef Documentation

◆ const_iterator

template<class T , extent_t Extent>
typedef const_pointer nonstd::span_lite::span< T, Extent >::const_iterator

Definition at line 984 of file span.hpp.

◆ const_pointer

template<class T , extent_t Extent>
typedef T const* nonstd::span_lite::span< T, Extent >::const_pointer

Definition at line 977 of file span.hpp.

◆ const_reference

template<class T , extent_t Extent>
typedef T const& nonstd::span_lite::span< T, Extent >::const_reference

Definition at line 978 of file span.hpp.

◆ const_reverse_iterator

template<class T , extent_t Extent>
typedef std::reverse_iterator<const_iterator> nonstd::span_lite::span< T, Extent >::const_reverse_iterator

Definition at line 989 of file span.hpp.

◆ difference_type

template<class T , extent_t Extent>
typedef std::ptrdiff_t nonstd::span_lite::span< T, Extent >::difference_type

Definition at line 986 of file span.hpp.

◆ element_type

template<class T , extent_t Extent>
typedef T nonstd::span_lite::span< T, Extent >::element_type

Definition at line 972 of file span.hpp.

◆ extent_type

template<class T , extent_t Extent>
typedef extent_t nonstd::span_lite::span< T, Extent >::extent_type

Definition at line 981 of file span.hpp.

◆ iterator

template<class T , extent_t Extent>
typedef pointer nonstd::span_lite::span< T, Extent >::iterator

Definition at line 983 of file span.hpp.

◆ pointer

template<class T , extent_t Extent>
typedef T* nonstd::span_lite::span< T, Extent >::pointer

Definition at line 976 of file span.hpp.

◆ reference

template<class T , extent_t Extent>
typedef T& nonstd::span_lite::span< T, Extent >::reference

Definition at line 975 of file span.hpp.

◆ reverse_iterator

template<class T , extent_t Extent>
typedef std::reverse_iterator<iterator> nonstd::span_lite::span< T, Extent >::reverse_iterator

Definition at line 988 of file span.hpp.

◆ size_type

template<class T , extent_t Extent>
typedef size_t nonstd::span_lite::span< T, Extent >::size_type

Definition at line 980 of file span.hpp.

◆ value_type

template<class T , extent_t Extent>
typedef std11::remove_cv<T>::type nonstd::span_lite::span< T, Extent >::value_type

Definition at line 973 of file span.hpp.

Member Enumeration Documentation

◆ anonymous enum

template<class T , extent_t Extent>
anonymous enum
Enumerator
extent 

Definition at line 992 of file span.hpp.

Constructor & Destructor Documentation

◆ span() [1/5]

template<class T , extent_t Extent>
span_constexpr_exp nonstd::span_lite::span< T, Extent >::span ( pointer  ptr,
size_type  count 
)
inline

Definition at line 1025 of file span.hpp.

◆ span() [2/5]

template<class T , extent_t Extent>
span_constexpr_exp nonstd::span_lite::span< T, Extent >::span ( pointer  first,
pointer  last 
)
inline

Definition at line 1043 of file span.hpp.

◆ span() [3/5]

template<class T , extent_t Extent>
template<std::size_t N span_REQUIRES_T>
span_constexpr nonstd::span_lite::span< T, Extent >::span ( element_type(&)  arr[N])
inline

Definition at line 1053 of file span.hpp.

◆ span() [4/5]

template<class T , extent_t Extent>
span_constexpr nonstd::span_lite::span< T, Extent >::span ( span< T, Extent > const &  other)
inline

Definition at line 1132 of file span.hpp.

◆ ~span()

template<class T , extent_t Extent>
nonstd::span_lite::span< T, Extent >::~span ( )
inline

Definition at line 1137 of file span.hpp.

◆ span() [5/5]

template<class T , extent_t Extent>
template<class OtherElementType , extent_type OtherExtent span_REQUIRES_T>
span_constexpr_exp nonstd::span_lite::span< T, Extent >::span ( span< OtherElementType, OtherExtent > const &  other)
inline

Definition at line 1155 of file span.hpp.

Member Function Documentation

◆ back()

template<class T , extent_t Extent>
span_constexpr_exp reference nonstd::span_lite::span< T, Extent >::back ( ) const
inline

Definition at line 1296 of file span.hpp.

◆ begin()

template<class T , extent_t Extent>
span_constexpr iterator nonstd::span_lite::span< T, Extent >::begin ( ) const
inline

Definition at line 1319 of file span.hpp.

◆ cbegin()

template<class T , extent_t Extent>
span_constexpr const_iterator nonstd::span_lite::span< T, Extent >::cbegin ( ) const
inline

Definition at line 1337 of file span.hpp.

◆ cend()

template<class T , extent_t Extent>
span_constexpr const_iterator nonstd::span_lite::span< T, Extent >::cend ( ) const
inline

Definition at line 1346 of file span.hpp.

◆ crbegin()

template<class T , extent_t Extent>
span_constexpr const_reverse_iterator nonstd::span_lite::span< T, Extent >::crbegin ( ) const
inline

Definition at line 1365 of file span.hpp.

◆ crend()

template<class T , extent_t Extent>
span_constexpr const_reverse_iterator nonstd::span_lite::span< T, Extent >::crend ( ) const
inline

Definition at line 1370 of file span.hpp.

◆ data()

template<class T , extent_t Extent>
span_constexpr pointer nonstd::span_lite::span< T, Extent >::data ( ) const
inline

Definition at line 1282 of file span.hpp.

◆ empty()

template<class T , extent_t Extent>
span_nodiscard span_constexpr bool nonstd::span_lite::span< T, Extent >::empty ( ) const
inline

Definition at line 1241 of file span.hpp.

◆ end()

template<class T , extent_t Extent>
span_constexpr iterator nonstd::span_lite::span< T, Extent >::end ( ) const
inline

Definition at line 1328 of file span.hpp.

◆ first() [1/2]

template<class T , extent_t Extent>
template<extent_type Count>
span_constexpr_exp span<element_type, Count> nonstd::span_lite::span< T, Extent >::first ( ) const
inline

Definition at line 1165 of file span.hpp.

◆ first() [2/2]

template<class T , extent_t Extent>
span_constexpr_exp span<element_type, dynamic_extent> nonstd::span_lite::span< T, Extent >::first ( size_type  count) const
inline

Definition at line 1198 of file span.hpp.

◆ front()

template<class T , extent_t Extent>
span_constexpr_exp reference nonstd::span_lite::span< T, Extent >::front ( ) const
inline

Definition at line 1289 of file span.hpp.

◆ last() [1/2]

template<class T , extent_t Extent>
template<extent_type Count>
span_constexpr_exp span<element_type, Count> nonstd::span_lite::span< T, Extent >::last ( ) const
inline

Definition at line 1173 of file span.hpp.

◆ last() [2/2]

template<class T , extent_t Extent>
span_constexpr_exp span<element_type, dynamic_extent> nonstd::span_lite::span< T, Extent >::last ( size_type  count) const
inline

Definition at line 1205 of file span.hpp.

◆ operator=()

template<class T , extent_t Extent>
span_constexpr14 span& nonstd::span_lite::span< T, Extent >::operator= ( span< T, Extent > const &  other)
inline

Definition at line 1141 of file span.hpp.

◆ operator[]()

template<class T , extent_t Extent>
span_constexpr_exp reference nonstd::span_lite::span< T, Extent >::operator[] ( size_type  idx) const
inline

Definition at line 1248 of file span.hpp.

◆ rbegin()

template<class T , extent_t Extent>
span_constexpr reverse_iterator nonstd::span_lite::span< T, Extent >::rbegin ( ) const
inline

Definition at line 1355 of file span.hpp.

◆ rend()

template<class T , extent_t Extent>
span_constexpr reverse_iterator nonstd::span_lite::span< T, Extent >::rend ( ) const
inline

Definition at line 1360 of file span.hpp.

◆ size()

template<class T , extent_t Extent>
span_constexpr size_type nonstd::span_lite::span< T, Extent >::size ( ) const
inline

Definition at line 1226 of file span.hpp.

◆ size_bytes()

template<class T , extent_t Extent>
span_constexpr size_type nonstd::span_lite::span< T, Extent >::size_bytes ( ) const
inline

Definition at line 1236 of file span.hpp.

◆ span_REQUIRES_0()

template<class T , extent_t Extent>
nonstd::span_lite::span< T, Extent >::span_REQUIRES_0 ( (Extent==0)||(Extent==dynamic_extent )
inline

Definition at line 999 of file span.hpp.

◆ ssize()

template<class T , extent_t Extent>
span_constexpr std::ptrdiff_t nonstd::span_lite::span< T, Extent >::ssize ( ) const
inline

Definition at line 1231 of file span.hpp.

◆ subspan() [1/2]

template<class T , extent_t Extent>
template<size_type Offset, extent_type Count>
span_constexpr_exp span<element_type, Count> nonstd::span_lite::span< T, Extent >::subspan ( ) const
inline

Definition at line 1185 of file span.hpp.

◆ subspan() [2/2]

template<class T , extent_t Extent>
span_constexpr_exp span<element_type, dynamic_extent> nonstd::span_lite::span< T, Extent >::subspan ( size_type  offset,
size_type  count = static_cast<size_type>(dynamic_extent) 
) const
inline

Definition at line 1212 of file span.hpp.

Member Data Documentation

◆ data_

template<class T , extent_t Extent>
pointer nonstd::span_lite::span< T, Extent >::data_
private

Definition at line 1398 of file span.hpp.

◆ size_

template<class T , extent_t Extent>
size_type nonstd::span_lite::span< T, Extent >::size_
private

Definition at line 1399 of file span.hpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:52