MCPcopy Create free account
hub / github.com/apache/trafficserver / force_insert

Method force_insert

lib/yamlcpp/include/yaml-cpp/node/detail/impl.h:205–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203// map
204template <typename Key, typename Value>
205inline 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
224template <typename T>
225inline node& node_data::convert_to_node(const T& rhs,

Callers

nothing calls this directly

Calls 1

BadInsertFunction · 0.85

Tested by

no test coverage detected