|
avcpp 3.2.1
Wrapper for the FFmpeg that simplify usage from C++ projects.
|
Non-owning view over a contiguous array.
#include <hwcontext.h>
Public Types | |
| using | value_type = T |
| Element type of the view. | |
| using | iterator = T* |
| Iterator type of the view. | |
| using | const_iterator = const T* |
| Const iterator type of the view. | |
Public Member Functions | |
| RangeView ()=default | |
| Create an empty view. | |
| RangeView (T *data, size_t size) noexcept | |
| Wrap an existing array. | |
| T * | begin () const noexcept |
| First element. | |
| T * | end () const noexcept |
| One past the last element. | |
| size_t | size () const noexcept |
| Number of elements. | |
| bool | empty () const noexcept |
| Whether the view has no elements. | |
| T & | operator[] (size_t index) const noexcept |
| Element access. | |
| std::vector< T > | toVector () const |
| Copy the view into a vector. | |
|
inlinenoexcept |
| data | pointer to the first element; may be null when size is zero |
| size | number of elements |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
| index | zero-based index; must be less than size() |
|
inlinenoexcept |
|
inline |