|  | 
| constexpr | ArrayRef () | 
|  | Default constructor.  More... 
 | 
|  | 
| constexpr | ArrayRef (std::nullptr_t) | 
|  | Null constructor.  More... 
 | 
|  | 
| constexpr | ArrayRef (const T *data, std::size_t size) | 
|  | Constructor from a pointer and a size.  More... 
 | 
|  | 
|  | ArrayRef (const std::vector< T > &values) | 
|  | Constructor from a std::vectorMore...
 | 
|  | 
| template<std::size_t N> | 
|  | ArrayRef (const std::array< T, N > &values) | 
|  | Constructor from a std::arrayMore...
 | 
|  | 
| template<std::size_t N> | 
| constexpr | ArrayRef (const T(&data)[N]) | 
|  | Constructor from a static array.  More... 
 | 
|  | 
|  | ArrayRef (std::initializer_list< T > values) | 
|  | Constructor from an initializer list.  More... 
 | 
|  | 
| constexpr const T * | getData () const noexcept | 
|  | Get a pointer to the elements.  More... 
 | 
|  | 
| constexpr std::size_t | getSize () const noexcept | 
|  | Get the number of elements.  More... 
 | 
|  | 
| constexpr const T * | begin () const noexcept | 
|  | Get an iterator to the first element.  More... 
 | 
|  | 
| constexpr const T * | end () const noexcept | 
|  | Get an iterator past the last element.  More... 
 | 
|  | 
| constexpr const T & | operator[] (std::size_t index) const | 
|  | Get an element at a given index.  More... 
 | 
|  | 
template<typename T>
class gf::ArrayRef< T >
A constant reference to an array and its size. 
This class stores a pointer to some data and its size. It can be built from various inputs: std::vector, static array, pointer and size.
- See also
- gf::BufferRef, gf::StringRef