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 264a27ae1c9f7fc587c3c7daf60025c11c98305f
Author: Meng Zhu <[email protected]>
AuthorDate: Fri May 24 13:42:16 2019 +0200

    Added method `empty()` for `ResourceLimits`.
    
    Review: https://reviews.apache.org/r/70715
---
 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 bc5b96d..21f08c6 100644
--- a/src/common/resource_quantities.hpp
+++ b/src/common/resource_quantities.hpp
@@ -218,6 +218,8 @@ public:
 
   size_t size() const { return limits.size(); };
 
+  bool empty() const { return limits.empty(); }
+
   // Returns the limit of the resource with the given name.
   // If there is no explicit limit for the resource, return `None()`.
   // Note, `None()` implies that the limit of the resource is infinite.

Reply via email to