Console Library 8.0.0
A header-only library that makes C++ simple
Loading...
Searching...
No Matches
console::View< const T[]> Class Template Reference

const T[] 的特化,包装指向 const 的原生数组指针。 More...

#include <view.h>

Public Types

typedef const T * iterator
typedef const T * const_iterator

Public Member Functions

const T * begin () const
const T * end () const
const T * cbegin () const
const T * cend () const
 View (const T *begin, const T *end)
 View (const T *data, size_t count)
size_t size () const
const T & operator[] (size_t pos) const
const T & at (size_t pos) const
std::vector< T > collect () const

Private Types

using Iterator
using cIterator

Private Attributes

const T * begin_
const T * end_

Detailed Description

template<class T>
class console::View< const T[]>

const T[] 的特化,包装指向 const 的原生数组指针。

Template Parameters
T元素类型。

Member Typedef Documentation

◆ cIterator

using console::View< const T >::cIterator
private

◆ const_iterator

template<class T>
typedef const T* console::View< const T[]>::const_iterator

◆ Iterator

using console::View< const T >::Iterator
private

◆ iterator

template<class T>
typedef const T* console::View< const T[]>::iterator

Constructor & Destructor Documentation

◆ View() [1/2]

template<class T>
console::View< const T[]>::View ( const T * begin,
const T * end )
inline

◆ View() [2/2]

template<class T>
console::View< const T[]>::View ( const T * data,
size_t count )
inline

Member Function Documentation

◆ at()

template<class T>
const T & console::View< const T[]>::at ( size_t pos) const
inline

◆ begin()

template<class T>
const T * console::View< const T[]>::begin ( ) const
inline

◆ cbegin()

template<class T>
const T * console::View< const T[]>::cbegin ( ) const
inline

◆ cend()

template<class T>
const T * console::View< const T[]>::cend ( ) const
inline

◆ collect()

template<class T>
std::vector< T > console::View< const T[]>::collect ( ) const
inline

◆ end()

template<class T>
const T * console::View< const T[]>::end ( ) const
inline

◆ operator[]()

template<class T>
const T & console::View< const T[]>::operator[] ( size_t pos) const
inline

◆ size()

template<class T>
size_t console::View< const T[]>::size ( ) const
inline

Member Data Documentation

◆ begin_

template<class T>
const T* console::View< const T[]>::begin_
private

◆ end_

template<class T>
const T * console::View< const T[]>::end_
private

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