diff options
Diffstat (limited to 'source/blender/blenlib/BLI_span.hh')
-rw-r--r-- | source/blender/blenlib/BLI_span.hh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_span.hh b/source/blender/blenlib/BLI_span.hh index fcc6d6f754b..fe511793c46 100644 --- a/source/blender/blenlib/BLI_span.hh +++ b/source/blender/blenlib/BLI_span.hh @@ -85,6 +85,15 @@ namespace blender { * modified. */ template<typename T> class Span { + public: + using value_type = T; + using pointer = T *; + using const_pointer = const T *; + using reference = T &; + using const_reference = const T &; + using iterator = const T *; + using size_type = int64_t; + private: const T *data_ = nullptr; int64_t size_ = 0; @@ -459,6 +468,15 @@ template<typename T> class Span { * MutableSpan. */ template<typename T> class MutableSpan { + public: + using value_type = T; + using pointer = T *; + using const_pointer = const T *; + using reference = T &; + using const_reference = const T &; + using iterator = T *; + using size_type = int64_t; + private: T *data_; int64_t size_; |