diff options
Diffstat (limited to 'src/core/span_type.hpp')
-rw-r--r-- | src/core/span_type.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/span_type.hpp b/src/core/span_type.hpp index 614be8456..0df528816 100644 --- a/src/core/span_type.hpp +++ b/src/core/span_type.hpp @@ -92,6 +92,8 @@ public: constexpr const_iterator cbegin() const noexcept { return const_iterator(first); } constexpr const_iterator cend() const noexcept { return const_iterator(last); } + constexpr reference operator[](size_type idx) const { return first[idx]; } + private: pointer first; pointer last; |