Template Function YAML::safeGet

Function Documentation

template<typename ValueType>
bool YAML::safeGet(const YAML::Node &node, const std::string &key, ValueType *value)

A function to get a value from a YAML node with non-exception error handling.


True if the value was filled in successfully. False otherwise.

  • [in] node: The YAML node.

  • [in] key: The key used to dereference the node (node[key]).

  • [out] value: The return value.