Define YAML_LOAD_OPT2

Define Documentation

YAML_LOAD_OPT2(_varname, _type)

Optional load: _varname = cfg[_varname] (keeps default when the key is absent).

Parameters:
  • _varname – Variable name - also used verbatim as the YAML key.

  • _type – C++ type for the getOrDefault call.