forked from microsoft/GSL
Merge branch 'master' into dev/jomaples/add_missing_span_functions
This commit is contained in:
+6
-2
@@ -521,11 +521,15 @@ public:
|
||||
Expects(size() > 0);
|
||||
return data()[size() - 1];
|
||||
}
|
||||
|
||||
|
||||
|
||||
// at and operator() are deprecated to align to the public member functions of std::span
|
||||
[[deprecated("Use operator[]")]]
|
||||
constexpr reference at(index_type idx) const noexcept{ return this->operator[](idx); }
|
||||
[[deprecated("Use operator[]")]]
|
||||
constexpr reference operator()(index_type idx) const noexcept{ return this->operator[](idx); }
|
||||
|
||||
|
||||
|
||||
constexpr pointer data() const noexcept { return storage_.data(); }
|
||||
|
||||
// [span.iter], span iterator support
|
||||
|
||||
Reference in New Issue
Block a user