Add Slice indexing to API on website

This commit is contained in:
David Tolnay 2020-12-27 00:01:49 -08:00
parent b4512a4465
commit 974bc9559d
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -25,6 +25,12 @@ public:
T *data() const noexcept;
size_t size() const noexcept;
size_t length() const noexcept;
bool empty() const noexcept;
T &operator[](size_t n) const noexcept;
T &at(size_t n) const;
T &front() const noexcept;
T &back() const noexcept;
class iterator;
iterator begin() const noexcept;