Template Function YAML::safeGet¶
Defined in File yaml-serialization.h
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.
- Parameters
node – [in] The YAML node.
key – [in] The key used to dereference the node (node[key]).
value – [out] The return value.
- Returns
True if the value was filled in successfully. False otherwise.