| 478 | |
| 479 | // Find attribute using predicate. Returns first attribute for which predicate returned true. |
| 480 | template <typename Predicate> xml_attribute find_attribute(Predicate pred) const |
| 481 | { |
| 482 | if (!_root) |
| 483 | return {}; |
| 484 | |
| 485 | for (xml_attribute attrib = first_attribute(); attrib; attrib = attrib.next_attribute()) |
| 486 | if (pred(attrib)) |
| 487 | return attrib; |
| 488 | |
| 489 | return {}; |
| 490 | } |
| 491 | |
| 492 | // Find child node using predicate. Returns first child for which predicate returned true. |
| 493 | template <typename Predicate> xml_node find_child(Predicate pred) const |
nothing calls this directly
no test coverage detected