ROOT  6.06/09
Reference Guide
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
std::array_view< T > Class Template Reference

template<class T>
class std::array_view< T >

Definition at line 146 of file rhysd_array_view.h.

Public Types

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

Public Member Functions

constexpr array_view () noexcept
 
constexpr array_view (array_view const &) noexcept=default
 
constexpr array_view (array_view &&) noexcept=default
 
template<size_type N>
 array_view (std::array< T, N > const &a) noexcept
 
template<size_type N>
 array_view (T const (&a)[N]) noexcept
 
 array_view (std::vector< T > const &v) noexcept
 
constexpr array_view (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>
 array_view (InputIterator start, InputIterator last)
 
 array_view (std::initializer_list< T > const &l)
 
array_viewoperator= (array_view const &) noexcept=delete
 
array_viewoperator= (array_view &&) noexcept=delete
 
constexpr const_iterator begin () const noexcept
 
constexpr const_iterator end () const noexcept
 
constexpr const_iterator cbegin () const noexcept
 
constexpr const_iterator cend () const noexcept
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator crend () const
 
constexpr size_type size () const noexcept
 
constexpr size_type length () const noexcept
 
constexpr size_type max_size () const noexcept
 
constexpr bool empty () const noexcept
 
constexpr const_reference operator[] (size_type const n) const noexcept
 
constexpr const_reference at (size_type const n) const
 
constexpr const_pointer data () const noexcept
 
constexpr const_reference front () const noexcept
 
constexpr const_reference back () const noexcept
 
constexpr array_view< T > slice (check_bound_t, size_type const pos, size_type const length) const
 
constexpr array_view< T > slice_before (check_bound_t, size_type const pos) const
 
constexpr array_view< T > slice_after (check_bound_t, size_type const pos) const
 
constexpr array_view< T > slice (size_type const pos, size_type const length) const
 
constexpr array_view< T > slice_before (size_type const pos) const
 
constexpr array_view< T > slice_after (size_type const pos) const
 
constexpr array_view< T > slice (check_bound_t, iterator start, iterator last) const
 
constexpr array_view< T > slice_before (check_bound_t, iterator const pos) const
 
constexpr array_view< T > slice_after (check_bound_t, iterator const pos) const
 
constexpr array_view< T > slice (iterator start, iterator last) const
 
constexpr array_view< T > slice_before (iterator const pos) const
 
constexpr array_view< T > slice_after (iterator const pos) const
 
template<class Allocator = std::allocator<T>>
auto to_vector (Allocator const &alloc=Allocator{}) const -> std::vector< T, Allocator >
 
template<size_t N>
auto to_array () const -> std::array< T, N >
 

Private Member Functions

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

Private Attributes

size_type const length_
 
const_pointer const data_
 

#include <ROOT/rhysd_array_view.h>

+ Collaboration diagram for std::array_view< T >:

Member Typedef Documentation

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

Definition at line 157 of file rhysd_array_view.h.

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

Definition at line 153 of file rhysd_array_view.h.

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

Definition at line 155 of file rhysd_array_view.h.

template<class T>
typedef std::reverse_iterator<const_iterator> std::array_view< T >::const_reverse_iterator

Definition at line 161 of file rhysd_array_view.h.

template<class T>
typedef ptrdiff_t std::array_view< T >::difference_type

Definition at line 159 of file rhysd_array_view.h.

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

Definition at line 156 of file rhysd_array_view.h.

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

Definition at line 152 of file rhysd_array_view.h.

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

Definition at line 154 of file rhysd_array_view.h.

template<class T>
typedef std::reverse_iterator<iterator> std::array_view< T >::reverse_iterator

Definition at line 160 of file rhysd_array_view.h.

template<class T>
typedef size_t std::array_view< T >::size_type

Definition at line 158 of file rhysd_array_view.h.

template<class T>
typedef T std::array_view< T >::value_type

Definition at line 151 of file rhysd_array_view.h.

Constructor & Destructor Documentation

template<class T>
constexpr std::array_view< T >::array_view ( )
inlinenoexcept

Definition at line 166 of file rhysd_array_view.h.

template<class T>
constexpr std::array_view< T >::array_view ( array_view< T > const &  )
defaultnoexcept
template<class T>
constexpr std::array_view< T >::array_view ( array_view< T > &&  )
defaultnoexcept
template<class T>
template<size_type N>
std::array_view< T >::array_view ( std::array< T, N > const &  a)
inlinenoexcept

Definition at line 176 of file rhysd_array_view.h.

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

Definition at line 183 of file rhysd_array_view.h.

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

Definition at line 189 of file rhysd_array_view.h.

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

Definition at line 193 of file rhysd_array_view.h.

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::array_view< T >::array_view ( InputIterator  start,
InputIterator  last 
)
inlineexplicit

Definition at line 206 of file rhysd_array_view.h.

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

Definition at line 210 of file rhysd_array_view.h.

Member Function Documentation

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

Definition at line 276 of file rhysd_array_view.h.

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

Definition at line 289 of file rhysd_array_view.h.

template<class T>
constexpr const_iterator std::array_view< T >::begin ( ) const
inlinenoexcept
template<class T>
constexpr const_iterator std::array_view< T >::cbegin ( ) const
inlinenoexcept

Definition at line 228 of file rhysd_array_view.h.

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

Definition at line 232 of file rhysd_array_view.h.

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

Definition at line 244 of file rhysd_array_view.h.

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

Definition at line 248 of file rhysd_array_view.h.

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

Definition at line 281 of file rhysd_array_view.h.

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

Definition at line 268 of file rhysd_array_view.h.

template<class T>
constexpr const_iterator std::array_view< T >::end ( ) const
inlinenoexcept
template<class T>
constexpr const_reference std::array_view< T >::front ( ) const
inlinenoexcept

Definition at line 285 of file rhysd_array_view.h.

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

Definition at line 260 of file rhysd_array_view.h.

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

Definition at line 264 of file rhysd_array_view.h.

template<class T>
array_view& std::array_view< T >::operator= ( array_view< T > const &  )
deletenoexcept
template<class T>
array_view& std::array_view< T >::operator= ( array_view< T > &&  )
deletenoexcept
template<class T>
constexpr const_reference std::array_view< T >::operator[] ( size_type const  n) const
inlinenoexcept

Definition at line 272 of file rhysd_array_view.h.

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

Definition at line 236 of file rhysd_array_view.h.

Referenced by std::array_view< T >::crbegin().

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

Definition at line 240 of file rhysd_array_view.h.

Referenced by std::array_view< T >::crend().

template<class T>
constexpr size_type std::array_view< T >::size ( ) const
inlinenoexcept
template<class T>
constexpr array_view<T> std::array_view< T >::slice ( check_bound_t  ,
size_type const  pos,
size_type const  length 
) const
inline

Definition at line 299 of file rhysd_array_view.h.

template<class T>
constexpr array_view<T> std::array_view< T >::slice ( size_type const  pos,
size_type const  length 
) const
inline

Definition at line 322 of file rhysd_array_view.h.

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

Definition at line 338 of file rhysd_array_view.h.

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

Definition at line 364 of file rhysd_array_view.h.

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

Definition at line 313 of file rhysd_array_view.h.

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

Definition at line 330 of file rhysd_array_view.h.

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

Definition at line 355 of file rhysd_array_view.h.

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

Definition at line 372 of file rhysd_array_view.h.

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

Definition at line 306 of file rhysd_array_view.h.

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

Definition at line 326 of file rhysd_array_view.h.

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

Definition at line 348 of file rhysd_array_view.h.

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

Definition at line 368 of file rhysd_array_view.h.

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

Definition at line 390 of file rhysd_array_view.h.

template<class T>
template<size_t... I>
auto std::array_view< T >::to_array_impl ( detail::indices< I...>  ) const -> std::array<T, sizeof...(I)>
inlineprivate

Definition at line 397 of file rhysd_array_view.h.

Referenced by std::array_view< T >::to_array().

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

Definition at line 383 of file rhysd_array_view.h.

Member Data Documentation

template<class T>
const_pointer const std::array_view< T >::data_
private
template<class T>
size_type const std::array_view< T >::length_
private

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