diff options
Diffstat (limited to 'gsl/span')
-rw-r--r-- | gsl/span | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -503,6 +503,8 @@ public: Expects(idx >= 0 && idx < storage_.size()); return data()[idx]; } + + constexpr reference at(index_type idx) const { return this->operator[](idx); } constexpr reference operator()(index_type idx) const { return this->operator[](idx); } constexpr pointer data() const noexcept { return storage_.data(); } |