Template Class Buffer

Class Documentation

template<typename ElementType, uint64_t Capacity, typename index_t = uint64_t>
class Buffer

Public Functions

Buffer() noexcept = default
~Buffer() noexcept = default
Buffer(const Buffer&) = delete
Buffer(Buffer&&) = delete
Buffer &operator=(const Buffer&) = delete
Buffer &operator=(Buffer&&) = delete
ElementType &operator[](const index_t index) noexcept
const ElementType &operator[](const index_t index) const noexcept
ElementType *ptr(const index_t index) noexcept
const ElementType *ptr(const index_t index) const noexcept
uint64_t capacity() const noexcept