This is an automated email from the ASF dual-hosted git repository. mzhu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mesos.git
commit c76b4431505861c8e5997f13b7fda51ef2cd7c54 Author: Meng Zhu <[email protected]> AuthorDate: Tue Mar 26 16:25:46 2019 -0700 Added `empty()` method in `class ResourceQuantities`. Review: https://reviews.apache.org/r/70318 --- src/common/resource_quantities.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/resource_quantities.hpp b/src/common/resource_quantities.hpp index db4f5af..e59ae03 100644 --- a/src/common/resource_quantities.hpp +++ b/src/common/resource_quantities.hpp @@ -120,6 +120,8 @@ public: size_t size() const { return quantities.size(); }; + bool empty() const { return quantities.empty(); } + // Returns the quantity scalar value if a quantity with the given name. // If the given name is absent, return zero. Value::Scalar get(const std::string& name) const;
