MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / InsertOrDie

Function InsertOrDie

tensorflow/compiler/xla/map_util.h:90–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88// present.
89template <class Collection, class Key, class Value>
90void InsertOrDie(Collection* const collection, Key&& key, Value&& value) {
91 auto p = collection->insert(
92 std::make_pair(std::forward<Key>(key), std::forward<Value>(value)));
93 CHECK(p.second) << "duplicate key: " << key;
94}
95
96// Returns true if and only if the given collection contains the given key.
97template <class Collection, class Key>

Calls 1

insertMethod · 0.45

Tested by 1