#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:std::size_t size() const;inline const T* data() const. SizedData-compliant class which wraps a std::vector: Public Types | |
| using | Container = TContainer |
| The concrete container type. | |
Public Member Functions | |
Construction | |
| template<typename U > | |
| DataContainerHolder (std::size_t size, U *data) | |
| Default or size-based constructor. | |
| template<typename... TArgs> | |
| DataContainerHolder (TArgs &&... args) | |
| Forwarding constructor. | |
Properties | |
| std::size_t | size () const |
| Get the number of elements. | |
Element access | |
| const T * | data () const |
| Access the raw data. | |