BAN: Implement basic Span
This is wrapper over contiguous block of memory e.g. Vector
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <BAN/Errors.h>
|
||||
#include <BAN/Iterators.h>
|
||||
#include <BAN/Span.h>
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
@@ -34,6 +35,9 @@ namespace BAN
|
||||
const T& front() const;
|
||||
T& front();
|
||||
|
||||
Span<T> span() { return Span(m_data, size()); }
|
||||
const Span<T> span() const { return Span(m_data, size()); }
|
||||
|
||||
constexpr size_type size() const;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user