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

Function map_items

example/cacheHierarchy/fkYAML/node.hpp:14363–14368  ·  view source on GitHub ↗

@brief Returns a range of mapping entries. @throw `type_error` if this basic_node is not a mapping. @return A range of mapping entries. @sa https://fktn-k.github.io/fkYAML/api/basic_node/map_items/

Source from the content-addressed store, hash-verified

14361 /// @return A range of mapping entries.
14362 /// @sa https://fktn-k.github.io/fkYAML/api/basic_node/map_items/
14363 map_range map_items() {
14364 if FK_YAML_UNLIKELY (!is_mapping()) {
14365 throw type_error("map_items() cannot be called on a non-mapping node.", get_type());
14366 }
14367 return {*this};
14368 }
14369
14370 /// @brief Returns a const range of mapping entries.
14371 /// @throw `type_error` if this basic_node is not a mapping.

Callers

nothing calls this directly

Calls 2

is_mappingFunction · 0.85
type_errorFunction · 0.85

Tested by

no test coverage detected