5namespace isce3::core::detail {
12template<
typename T,
size_t NMAX = 32>
26 ptr_ = heapbuf_.data();
31 size_t size()
const {
return size_; }
34 const T*
data()
const {
return ptr_; }
51 std::vector<T> heapbuf_;
Small-size optimized (SSO) buffer.
Definition SSOBuffer.h:13
const T * data() const
const pointer to the underlying array serving as element storage
Definition SSOBuffer.h:34
SSOBuffer(size_t n)
Constructor.
Definition SSOBuffer.h:20
T * data()
pointer to the underlying array serving as element storage
Definition SSOBuffer.h:37
const T & operator[](size_t i) const
Index (read).
Definition SSOBuffer.h:40
size_t size() const
Number of elements that can be stored in the buffer.
Definition SSOBuffer.h:31
T & operator[](size_t i)
Index (write).
Definition SSOBuffer.h:43