summaryrefslogtreecommitdiff
path: root/src/node.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/node.h')
-rw-r--r--src/node.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node.h b/src/node.h
index 47edd10d..cfd027fc 100644
--- a/src/node.h
+++ b/src/node.h
@@ -199,6 +199,10 @@ public:
return children.get<0>().end();
}
+ std::size_t size() const {
+ return children.get<0>().size();
+ }
+
children_by_nameid::iterator begin(nameid_t _name_id) {
return std::find_if(children.get<1>().begin(),
children.get<1>().end(), match_nameid(_name_id));