MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / convert_yaml_version

Function convert_yaml_version

example/cacheHierarchy/fkYAML/node.hpp:8394–8396  ·  view source on GitHub ↗

@brief Update the target YAML version with an input string. @param version_str A YAML version string.

Source from the content-addressed store, hash-verified

8392 /// @brief Update the target YAML version with an input string.
8393 /// @param version_str A YAML version string.
8394 yaml_version_type convert_yaml_version(str_view version_str) noexcept {
8395 return (version_str.compare("1.1") == 0) ? yaml_version_type::VERSION_1_1 : yaml_version_type::VERSION_1_2;
8396 }
8397
8398private:
8399 /// The currently focused YAML node.

Callers 1

deserialize_directivesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected