Merge branch 'master' into dev/jomaples/add_missing_span_functions

This commit is contained in:
Jordan Maples [MSFT]
2020-01-10 10:20:37 -08:00
committed by GitHub
2 changed files with 8 additions and 4 deletions
+6 -2
View File
@@ -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