openMSX
Classes | Functions
array_ref.hh File Reference
#include <algorithm>
#include <iterator>
#include <vector>
#include <cassert>
#include <cstddef>
Include dependency graph for array_ref.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  array_ref< T >
 This class implements a subset of the proposal for std::array_ref (proposed for the next c++ standard (c++1y)). More...
 

Functions

template<typename T >
array_ref< T > make_array_ref (const T *array, size_t length)
 
template<typename T , size_t N>
array_ref< T > make_array_ref (const T(&a)[N])
 
template<typename T >
array_ref< T > make_array_ref (const std::vector< T > &v)
 

Function Documentation

◆ make_array_ref() [1/3]

template<typename T >
array_ref<T> make_array_ref ( const T *  array,
size_t  length 
)
inline

◆ make_array_ref() [2/3]

template<typename T , size_t N>
array_ref<T> make_array_ref ( const T(&)  a[N])
inline

Definition at line 108 of file array_ref.hh.

◆ make_array_ref() [3/3]

template<typename T >
array_ref<T> make_array_ref ( const std::vector< T > &  v)
inline

Definition at line 113 of file array_ref.hh.