MCPcopy Create free account
hub / github.com/pybind/pybind11 / set

Method set

tests/test_sequences_and_iterators.cpp:338–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336 : map(std::move(init)) {}
337
338 void set(const std::string &key, std::string val) { map[key] = std::move(val); }
339 std::string get(const std::string &key) const { return map.at(key); }
340 size_t size() const { return map.size(); }
341

Callers

nothing calls this directly

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected