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.

  • node[in] The YAML node.

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

  • value[out] The return value.


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