added Node::first() and Node::last() to get the first or last child

This commit is contained in:
Marc Wäckerlin
2015-05-08 22:00:16 +00:00
parent ad7d4cddeb
commit 72be1818f1
3 changed files with 51 additions and 0 deletions

View File

@@ -813,6 +813,10 @@ namespace xml {
const throw(attribute_not_available);
const Attributes& attributes() const throw();
Attributes& attributes() throw();
const Node& first() const throw(out_of_range);
Node& first() throw(out_of_range);
const Node& last() const throw(out_of_range);
Node& last() throw(out_of_range);
Node& limits(size_type min=0, size_type max=0) throw();
List list(const std::string& name) const throw();
bool operator()(const std::string& child) const throw();