Definition at line 986 of file yaml_decoders.cc.
◆ decode()
Definition at line 987 of file yaml_decoders.cc.
988 {
989 assert(node.Type() == NodeType::Map || node.Type() == NodeType::Scalar);
990
991 if (node.Type() == NodeType::Scalar) {
992
993
995 }
996 else {
997 for (const auto &it : node) {
998 auto key = it.first.as<std::string>();
999 if (key == "default") {
1001 }
1002 else {
1003 try {
1004 auto index = stoul(key);
1005 rhs.argument_hints[index] =
1007 }
1008 catch (std::exception &e) {
1009 return false;
1010 }
1011 }
1012 }
1013 }
1014
1015 return true;
1016 }
The documentation for this struct was generated from the following file: