@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/
| 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. |
nothing calls this directly
no test coverage detected