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

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

#include <view.h>

Public Types

typedef T * iterator
typedef const T * const_iterator

Public Member Functions

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

Private Types

using Iterator
using cIterator

Private Attributes

T * begin_
T * end_

Detailed Description

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

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

Template Parameters
T元素类型。

Member Typedef Documentation

◆ cIterator

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

◆ const_iterator

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

◆ Iterator

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

◆ iterator

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

Constructor & Destructor Documentation

◆ View() [1/2]

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

◆ View() [2/2]

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

Member Function Documentation

◆ at()

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

◆ begin()

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

◆ cbegin()

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

◆ cend()

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

◆ collect()

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

◆ end()

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

◆ operator[]()

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

◆ size()

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

Member Data Documentation

◆ begin_

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

◆ end_

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

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