Skip to content
Snippets Groups Projects
Commit ebe4ae0b authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[BL] Add empty() to ConfigTree's Range class.

parent a016b457
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,7 @@ public: ...@@ -27,6 +27,7 @@ public:
Iterator begin() const { return _begin; } Iterator begin() const { return _begin; }
Iterator end() const { return _end; } Iterator end() const { return _end; }
std::size_t size() const { return std::distance(_begin, _end); } std::size_t size() const { return std::distance(_begin, _end); }
bool empty() const { return size() == 0; }
private: private:
Iterator _begin; Iterator _begin;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment