MCPcopy Create free account
hub / github.com/Tessil/hat-trie / insert

Method insert

include/tsl/array-hash/array_map.h:173–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171
172#ifdef TSL_AH_HAS_STRING_VIEW
173 std::pair<iterator, bool> insert(const std::basic_string_view<CharT>& key,
174 const T& value) {
175 return m_ht.emplace(key.data(), key.size(), value);
176 }
177#else
178 std::pair<iterator, bool> insert(const CharT* key, const T& value) {
179 return m_ht.emplace(key, std::char_traits<CharT>::length(key), value);

Callers

nothing calls this directly

Calls 4

emplaceMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected