MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / InsertOrDie

Function InsertOrDie

external/sentencepiece/src/util.h:254–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252
253template <class Collection>
254void InsertOrDie(Collection *const collection,
255 const typename Collection::value_type::first_type &key,
256 const typename Collection::value_type::second_type &data) {
257 CHECK(InsertIfNotPresent(collection, key, data)) << "duplicate key";
258}
259
260// hash
261inline void mix(uint64_t &a, uint64_t &b, uint64_t &c) { // 64bit version

Callers 2

GetCharSymbolMethod · 0.85
GetPairSymbolMethod · 0.85

Calls 1

InsertIfNotPresentFunction · 0.85

Tested by

no test coverage detected