Add rust::Vec<T>::empty

This commit is contained in:
David Tolnay 2020-04-24 16:48:18 -07:00
parent 7f2dc3bab0
commit 465305bdb4
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -206,6 +206,7 @@ template <typename T>
class Vec final {
public:
size_t size() const noexcept;
bool empty() const noexcept { return size() == 0; }
private:
Vec() noexcept;