aboutsummaryrefslogtreecommitdiffstats
path: root/gsl/span
diff options
context:
space:
mode:
Diffstat (limited to 'gsl/span')
-rw-r--r--gsl/span2
1 files changed, 2 insertions, 0 deletions
diff --git a/gsl/span b/gsl/span
index 6f74dc5..cf90e86 100644
--- a/gsl/span
+++ b/gsl/span
@@ -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(); }