Logo ROOT   6.14/05
Reference Guide
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
std::__ROOT::span< T > Class Template Reference

template<class T>
class std::__ROOT::span< T >

Definition at line 156 of file span.hxx.

Public Types

typedef value_type const * const_iterator
 
typedef value_type const * const_pointer
 
typedef value_type const & const_reference
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef ptrdiff_t difference_type
 
typedef value_type const * iterator
 
typedef value_type const * pointer
 
typedef value_type const & reference
 
typedef std::reverse_iterator< iteratorreverse_iterator
 
typedef size_t size_type
 
typedef T value_type
 

Public Member Functions

constexpr span () noexcept
 
constexpr span (span const &) noexcept=default
 
constexpr span (span &&) noexcept=default
 
template<size_type N>
 span (std::array< T, N > const &a) noexcept
 
template<size_type N>
 span (T const (&a)[N]) noexcept
 
 span (std::vector< T > const &v) noexcept
 
constexpr span (T const *a, size_type const n) noexcept
 
template<class InputIterator , class = typename std::enable_if< std::is_same< T, typename std::iterator_traits<InputIterator>::value_type >::value >::type>
 span (InputIterator start, InputIterator last)
 
 span (std::initializer_list< T > const &l)
 
constexpr const_reference at (size_type const n) const
 
constexpr const_reference back () const noexcept
 
constexpr const_iterator begin () const noexcept
 
constexpr const_iterator cbegin () const noexcept
 
constexpr const_iterator cend () const noexcept
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator crend () const
 
constexpr const_pointer data () const noexcept
 
constexpr bool empty () const noexcept
 
constexpr const_iterator end () const noexcept
 
constexpr const_reference front () const noexcept
 
constexpr size_type length () const noexcept
 
constexpr size_type max_size () const noexcept
 
spanoperator= (span const &) noexcept=delete
 
spanoperator= (span &&) noexcept=delete
 
constexpr const_reference operator[] (size_type const n) const noexcept
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
constexpr size_type size () const noexcept
 
constexpr span< T > slice (check_bound_t, size_type const pos, size_type const slicelen) const
 
constexpr span< T > slice (size_type const pos, size_type const slicelen) const
 
constexpr span< T > slice (check_bound_t, iterator start, iterator last) const
 
constexpr span< T > slice (iterator start, iterator last) const
 
constexpr span< T > slice_after (check_bound_t, size_type const pos) const
 
constexpr span< T > slice_after (size_type const pos) const
 
constexpr span< T > slice_after (check_bound_t, iterator const pos) const
 
constexpr span< T > slice_after (iterator const pos) const
 
constexpr span< T > slice_before (check_bound_t, size_type const pos) const
 
constexpr span< T > slice_before (size_type const pos) const
 
constexpr span< T > slice_before (check_bound_t, iterator const pos) const
 
constexpr span< T > slice_before (iterator const pos) const
 
template<size_t N>
auto to_array () const -> std::array< T, N >
 
template<class Allocator = std::allocator<T>>
auto to_vector (Allocator const &alloc=Allocator{}) const -> std::vector< T, Allocator >
 

Private Member Functions

template<size_t... I>
auto to_array_impl (ROOT::Detail::indices< I... >) const -> std::array< T, sizeof...(I)>
 

Private Attributes

const_pointer const data_
 
size_type const length_
 

#include <ROOT/span.hxx>

Member Typedef Documentation

◆ const_iterator

template<class T>
typedef value_type const* std::__ROOT::span< T >::const_iterator

Definition at line 167 of file span.hxx.

◆ const_pointer

template<class T>
typedef value_type const* std::__ROOT::span< T >::const_pointer

Definition at line 163 of file span.hxx.

◆ const_reference

template<class T>
typedef value_type const& std::__ROOT::span< T >::const_reference

Definition at line 165 of file span.hxx.

◆ const_reverse_iterator

template<class T>
typedef std::reverse_iterator<const_iterator> std::__ROOT::span< T >::const_reverse_iterator

Definition at line 171 of file span.hxx.

◆ difference_type

template<class T>
typedef ptrdiff_t std::__ROOT::span< T >::difference_type

Definition at line 169 of file span.hxx.

◆ iterator

template<class T>
typedef value_type const* std::__ROOT::span< T >::iterator

Definition at line 166 of file span.hxx.

◆ pointer

template<class T>
typedef value_type const* std::__ROOT::span< T >::pointer

Definition at line 162 of file span.hxx.

◆ reference

template<class T>
typedef value_type const& std::__ROOT::span< T >::reference

Definition at line 164 of file span.hxx.

◆ reverse_iterator

template<class T>
typedef std::reverse_iterator<iterator> std::__ROOT::span< T >::reverse_iterator

Definition at line 170 of file span.hxx.

◆ size_type

template<class T>
typedef size_t std::__ROOT::span< T >::size_type

Definition at line 168 of file span.hxx.

◆ value_type

template<class T>
typedef T std::__ROOT::span< T >::value_type

Definition at line 161 of file span.hxx.

Constructor & Destructor Documentation

◆ span() [1/9]

template<class T>
constexpr std::__ROOT::span< T >::span ( )
inlinenoexcept

Definition at line 176 of file span.hxx.

◆ span() [2/9]

template<class T>
constexpr std::__ROOT::span< T >::span ( span< T > const &  )
defaultnoexcept

◆ span() [3/9]

template<class T>
constexpr std::__ROOT::span< T >::span ( span< T > &&  )
defaultnoexcept

◆ span() [4/9]

template<class T>
template<size_type N>
std::__ROOT::span< T >::span ( std::array< T, N > const &  a)
inlinenoexcept

Definition at line 186 of file span.hxx.

◆ span() [5/9]

template<class T>
template<size_type N>
std::__ROOT::span< T >::span ( T const (&)  a[N])
inlinenoexcept

Definition at line 193 of file span.hxx.

◆ span() [6/9]

template<class T>
std::__ROOT::span< T >::span ( std::vector< T > const &  v)
inlinenoexcept

Definition at line 199 of file span.hxx.

◆ span() [7/9]

template<class T>
constexpr std::__ROOT::span< T >::span ( T const *  a,
size_type const  n 
)
inlinenoexcept

Definition at line 203 of file span.hxx.

◆ span() [8/9]

template<class T>
template<class InputIterator , class = typename std::enable_if< std::is_same< T, typename std::iterator_traits<InputIterator>::value_type >::value >::type>
std::__ROOT::span< T >::span ( InputIterator  start,
InputIterator  last 
)
inlineexplicit

Definition at line 216 of file span.hxx.

◆ span() [9/9]

template<class T>
std::__ROOT::span< T >::span ( std::initializer_list< T > const &  l)
inline

Definition at line 220 of file span.hxx.

Member Function Documentation

◆ at()

template<class T>
constexpr const_reference std::__ROOT::span< T >::at ( size_type const  n) const
inline

Definition at line 286 of file span.hxx.

◆ back()

template<class T>
constexpr const_reference std::__ROOT::span< T >::back ( ) const
inlinenoexcept

Definition at line 301 of file span.hxx.

◆ begin()

template<class T>
constexpr const_iterator std::__ROOT::span< T >::begin ( ) const
inlinenoexcept

Definition at line 230 of file span.hxx.

◆ cbegin()

template<class T>
constexpr const_iterator std::__ROOT::span< T >::cbegin ( ) const
inlinenoexcept

Definition at line 238 of file span.hxx.

◆ cend()

template<class T>
constexpr const_iterator std::__ROOT::span< T >::cend ( ) const
inlinenoexcept

Definition at line 242 of file span.hxx.

◆ crbegin()

template<class T>
const_reverse_iterator std::__ROOT::span< T >::crbegin ( ) const
inline

Definition at line 254 of file span.hxx.

◆ crend()

template<class T>
const_reverse_iterator std::__ROOT::span< T >::crend ( ) const
inline

Definition at line 258 of file span.hxx.

◆ data()

template<class T>
constexpr const_pointer std::__ROOT::span< T >::data ( ) const
inlinenoexcept

Definition at line 293 of file span.hxx.

◆ empty()

template<class T>
constexpr bool std::__ROOT::span< T >::empty ( ) const
inlinenoexcept

Definition at line 278 of file span.hxx.

◆ end()

template<class T>
constexpr const_iterator std::__ROOT::span< T >::end ( ) const
inlinenoexcept

Definition at line 234 of file span.hxx.

◆ front()

template<class T>
constexpr const_reference std::__ROOT::span< T >::front ( ) const
inlinenoexcept

Definition at line 297 of file span.hxx.

◆ length()

template<class T>
constexpr size_type std::__ROOT::span< T >::length ( ) const
inlinenoexcept

Definition at line 270 of file span.hxx.

◆ max_size()

template<class T>
constexpr size_type std::__ROOT::span< T >::max_size ( ) const
inlinenoexcept

Definition at line 274 of file span.hxx.

◆ operator=() [1/2]

template<class T>
span& std::__ROOT::span< T >::operator= ( span< T > const &  )
deletenoexcept

◆ operator=() [2/2]

template<class T>
span& std::__ROOT::span< T >::operator= ( span< T > &&  )
deletenoexcept

◆ operator[]()

template<class T>
constexpr const_reference std::__ROOT::span< T >::operator[] ( size_type const  n) const
inlinenoexcept

Definition at line 282 of file span.hxx.

◆ rbegin()

template<class T>
const_reverse_iterator std::__ROOT::span< T >::rbegin ( ) const
inline

Definition at line 246 of file span.hxx.

◆ rend()

template<class T>
const_reverse_iterator std::__ROOT::span< T >::rend ( ) const
inline

Definition at line 250 of file span.hxx.

◆ size()

template<class T>
constexpr size_type std::__ROOT::span< T >::size ( ) const
inlinenoexcept

Definition at line 266 of file span.hxx.

◆ slice() [1/4]

template<class T>
constexpr span<T> std::__ROOT::span< T >::slice ( check_bound_t  ,
size_type const  pos,
size_type const  slicelen 
) const
inline

Definition at line 311 of file span.hxx.

◆ slice() [2/4]

template<class T>
constexpr span<T> std::__ROOT::span< T >::slice ( size_type const  pos,
size_type const  slicelen 
) const
inline

Definition at line 340 of file span.hxx.

◆ slice() [3/4]

template<class T>
constexpr span<T> std::__ROOT::span< T >::slice ( check_bound_t  ,
iterator  start,
iterator  last 
) const
inline

Definition at line 356 of file span.hxx.

◆ slice() [4/4]

template<class T>
constexpr span<T> std::__ROOT::span< T >::slice ( iterator  start,
iterator  last 
) const
inline

Definition at line 391 of file span.hxx.

◆ slice_after() [1/4]

template<class T>
constexpr span<T> std::__ROOT::span< T >::slice_after ( check_bound_t  ,
size_type const  pos 
) const
inline

Definition at line 329 of file span.hxx.

◆ slice_after() [2/4]

template<class T>
constexpr span<T> std::__ROOT::span< T >::slice_after ( size_type const  pos) const
inline

Definition at line 348 of file span.hxx.

◆ slice_after() [3/4]

template<class T>
constexpr span<T> std::__ROOT::span< T >::slice_after ( check_bound_t  ,
iterator const  pos 
) const
inline

Definition at line 380 of file span.hxx.

◆ slice_after() [4/4]

template<class T>
constexpr span<T> std::__ROOT::span< T >::slice_after ( iterator const  pos) const
inline

Definition at line 399 of file span.hxx.

◆ slice_before() [1/4]

template<class T>
constexpr span<T> std::__ROOT::span< T >::slice_before ( check_bound_t  ,
size_type const  pos 
) const
inline

Definition at line 320 of file span.hxx.

◆ slice_before() [2/4]

template<class T>
constexpr span<T> std::__ROOT::span< T >::slice_before ( size_type const  pos) const
inline

Definition at line 344 of file span.hxx.

◆ slice_before() [3/4]

template<class T>
constexpr span<T> std::__ROOT::span< T >::slice_before ( check_bound_t  ,
iterator const  pos 
) const
inline

Definition at line 371 of file span.hxx.

◆ slice_before() [4/4]

template<class T>
constexpr span<T> std::__ROOT::span< T >::slice_before ( iterator const  pos) const
inline

Definition at line 395 of file span.hxx.

◆ to_array()

template<class T>
template<size_t N>
auto std::__ROOT::span< T >::to_array ( ) const -> std::array<T, N>
inline

Definition at line 417 of file span.hxx.

◆ to_array_impl()

template<class T>
template<size_t... I>
auto std::__ROOT::span< T >::to_array_impl ( ROOT::Detail::indices< I... >  ) const -> std::array<T, sizeof...(I)>
inlineprivate

Definition at line 424 of file span.hxx.

◆ to_vector()

template<class T>
template<class Allocator = std::allocator<T>>
auto std::__ROOT::span< T >::to_vector ( Allocator const &  alloc = Allocator{}) const -> std::vector<T, Allocator>
inline

Definition at line 410 of file span.hxx.

Member Data Documentation

◆ data_

template<class T>
const_pointer const std::__ROOT::span< T >::data_
private

Definition at line 432 of file span.hxx.

◆ length_

template<class T>
size_type const std::__ROOT::span< T >::length_
private

Definition at line 431 of file span.hxx.

Libraries for std::__ROOT::span< T >:
[legend]

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