MCPcopy Create free account
hub / github.com/avast/retdec / getValuesFromMap

Function getValuesFromMap

include/retdec/utils/container.h:363–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361*/
362template<typename Map>
363std::set<typename Map::mapped_type> getValuesFromMap(const Map &m) {
364 std::set<typename Map::mapped_type> keys;
365 for (auto &p : m) {
366 keys.insert(p.second);
367 }
368 return keys;
369}
370
371/**
372* @brief Returns @c true if the given map @a m has a key @a k, @c false

Callers 2

getLocalVarsMethod · 0.85
TEST_FFunction · 0.85

Calls 1

insertMethod · 0.45

Tested by 1

TEST_FFunction · 0.68