MCPcopy Create free account
hub / github.com/bwapi/bwapi / erase_if

Method erase_if

bwapi/include/BWAPI/SetContainer.h:31–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 /// @see std::erase_if
30 template<class Pred>
31 void erase_if(const Pred& pred) {
32 auto it = this->begin();
33 while (it != this->end()) {
34 if (pred(*it)) it = this->erase(it);
35 else ++it;
36 }
37 }
38
39 /// <summary>Checks if this set contains a specific value.</summary>
40 ///

Callers 5

executeMethod · 0.80
executeMethod · 0.80
ReserveAllStructuresFunction · 0.80
onSendTextMethod · 0.80

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected