| 203 | // map |
| 204 | template <typename Key, typename Value> |
| 205 | inline void node_data::force_insert(const Key& key, const Value& value, |
| 206 | shared_memory_holder pMemory) { |
| 207 | switch (m_type) { |
| 208 | case NodeType::Map: |
| 209 | break; |
| 210 | case NodeType::Undefined: |
| 211 | case NodeType::Null: |
| 212 | case NodeType::Sequence: |
| 213 | convert_to_map(pMemory); |
| 214 | break; |
| 215 | case NodeType::Scalar: |
| 216 | throw BadInsert(); |
| 217 | } |
| 218 | |
| 219 | node& k = convert_to_node(key, pMemory); |
| 220 | node& v = convert_to_node(value, pMemory); |
| 221 | insert_map_pair(k, v); |
| 222 | } |
| 223 | |
| 224 | template <typename T> |
| 225 | inline node& node_data::convert_to_node(const T& rhs, |
nothing calls this directly
no test coverage detected