From ebe4ae0b5a9e9613a4b0beb6bd7ddf703c69bf5e Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <dmitri.naumov@ufz.de>
Date: Wed, 9 Jan 2019 18:32:46 +0100
Subject: [PATCH] [BL] Add empty() to ConfigTree's Range class.

---
 BaseLib/ConfigTree-impl.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/BaseLib/ConfigTree-impl.h b/BaseLib/ConfigTree-impl.h
index bb391cd4c2d..87ddab369ad 100644
--- a/BaseLib/ConfigTree-impl.h
+++ b/BaseLib/ConfigTree-impl.h
@@ -27,6 +27,7 @@ public:
     Iterator begin() const { return _begin; }
     Iterator end()   const { return _end; }
     std::size_t size() const { return std::distance(_begin, _end); }
+    bool empty() const { return size() == 0; }
 
 private:
     Iterator _begin;
-- 
GitLab