MCPcopy Create free account
hub / github.com/MyGUI/mygui / find_attribute

Function find_attribute

Tools/EditorFramework/pugixml.hpp:480–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

next_attributeMethod · 0.45

Tested by

no test coverage detected