MCPcopy Create free account
hub / github.com/BanjoRecomp/BanjoRecomp / erase_first

Method erase_first

src/game/recomp_data_api.cpp:141–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139 }
140
141 bool erase_first(ValueType& out) {
142 std::lock_guard lock{mutex};
143 auto it = map.items().begin();
144
145 if (it == map.items().end()) {
146 return false;
147 }
148
149 out = it->second;
150 map.erase(it->first);
151 return true;
152 }
153
154 size_t size() {
155 std::lock_guard lock{mutex};

Callers

nothing calls this directly

Calls 4

itemsMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected