mirror of
https://github.com/topjohnwu/cxx.git
synced 2025-02-23 09:30:45 +00:00
Add rust::Vec<T>::empty
This commit is contained in:
parent
7f2dc3bab0
commit
465305bdb4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user