commit | 28a71ae3aeda8640de1cef9e02b25c8b5e918dfc | [log] [tgz] |
---|---|---|
author | Brian Silverman <bsilver16384@gmail.com> | Sat Feb 23 20:58:59 2019 -0800 |
committer | Brian Silverman <bsilver16384@gmail.com> | Sat Feb 23 20:58:59 2019 -0800 |
tree | 55d9f03d16dfbfb16936ddcb7ce9080eed8e2921 | |
parent | 63d095db1e027f9929203a2684b80365e32d0391 [diff] [blame] |
Add clear() to SizedArray Change-Id: I237c344378ecf4966e12fb2aee6975696909e178
diff --git a/aos/containers/sized_array.h b/aos/containers/sized_array.h index 6d4209a..34e9206 100644 --- a/aos/containers/sized_array.h +++ b/aos/containers/sized_array.h
@@ -109,6 +109,8 @@ --size_; } + void clear() { size_ = 0; } + // These allow access to the underlying storage. The data here may be outside // the current logical extents of the container. const array &backing_array() const { return array_; }