| commit | 465305bdb4d05291460d42574c85e0f2c42042aa | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Fri Apr 24 16:48:18 2020 -0700 |
| committer | David Tolnay <dtolnay@gmail.com> | Sat Apr 25 18:02:13 2020 -0700 |
| tree | 26b412f0bc0d14ed5302609f9473f956d85c220e | |
| parent | 7f2dc3bab00a0cd2c5743bb731bfe89f7d49fa51 [diff] [blame] |
Add rust::Vec<T>::empty
diff --git a/include/cxx.h b/include/cxx.h index a96e6fa..250eba2 100644 --- a/include/cxx.h +++ b/include/cxx.h
@@ -206,6 +206,7 @@ class Vec final { public: size_t size() const noexcept; + bool empty() const noexcept { return size() == 0; } private: Vec() noexcept;