Itoyori  v0.0.1
ityr::common::span< T > Class Template Reference

#include <span.hpp>

Public Types

using element_type = T
 
using value_type = std::remove_cv_t< T >
 
using size_type = std::size_t
 
using pointer = T *
 
using iterator = pointer
 
using reference = T &
 

Public Member Functions

 span ()
 
template<typename ContiguousIterator >
 span (ContiguousIterator first, size_type n)
 
template<typename ContiguousIterator >
 span (ContiguousIterator first, ContiguousIterator last)
 
template<typename U >
 span (span< U > s)
 
constexpr pointer data () const noexcept
 
constexpr size_type size () const noexcept
 
constexpr iterator begin () const noexcept
 
constexpr iterator end () const noexcept
 
constexpr reference operator[] (size_type i) const
 
constexpr reference front () const
 
constexpr reference back () const
 
constexpr bool empty () const noexcept
 
constexpr this_t subspan (size_type offset, size_type count) const
 

Member Typedef Documentation

◆ element_type

template<typename T >
using ityr::common::span< T >::element_type = T

◆ iterator

template<typename T >
using ityr::common::span< T >::iterator = pointer

◆ pointer

template<typename T >
using ityr::common::span< T >::pointer = T*

◆ reference

template<typename T >
using ityr::common::span< T >::reference = T&

◆ size_type

template<typename T >
using ityr::common::span< T >::size_type = std::size_t

◆ value_type

template<typename T >
using ityr::common::span< T >::value_type = std::remove_cv_t<T>

Constructor & Destructor Documentation

◆ span() [1/4]

template<typename T >
ityr::common::span< T >::span ( )
inline

◆ span() [2/4]

template<typename T >
template<typename ContiguousIterator >
ityr::common::span< T >::span ( ContiguousIterator  first,
size_type  n 
)
inline

◆ span() [3/4]

template<typename T >
template<typename ContiguousIterator >
ityr::common::span< T >::span ( ContiguousIterator  first,
ContiguousIterator  last 
)
inline

◆ span() [4/4]

template<typename T >
template<typename U >
ityr::common::span< T >::span ( span< U >  s)
inline

Member Function Documentation

◆ back()

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

◆ begin()

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

◆ data()

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

◆ empty()

template<typename T >
constexpr bool ityr::common::span< T >::empty ( ) const
inlineconstexprnoexcept

◆ end()

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

◆ front()

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

◆ operator[]()

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

◆ size()

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

◆ subspan()

template<typename T >
constexpr this_t ityr::common::span< T >::subspan ( size_type  offset,
size_type  count 
) const
inlineconstexpr

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