#include <DataContainer.h>
A holder of any contiguous container specified by a size and data pointer.
The class can be specialized for any container, in which case it should satisfy the SizedData requirements.
TContainer m_container, and implements the following methods:size_type size() const;inline const T* data() const. Public Member Functions | |
Construction | |
| DataContainerHolder (std::size_t size=0) | |
| Default or size-based constructor. | |
| template<typename TIterator > | |
| DataContainerHolder (TIterator begin, TIterator end) | |
| Iterator-based constructor. | |
| DataContainerHolder (std::initializer_list< T > values) | |
| Initialization list-based constructor. | |
| template<typename... Ts> | |
| DataContainerHolder (Ts &&... args) | |
| Forwarding constructor. | |
Properties | |
| std::size_t | size () const |
| Get the number of elements. | |
Element access | |
| const T * | data () const |
| Access the raw data. | |