MCPcopy Create free account
hub / github.com/LUX-Core/lux / removeIf

Method removeIf

src/cpp-ethereum/libethereum/BlockQueue.h:118–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116
117 template<class Pred>
118 std::vector<T> removeIf(Pred _pred)
119 {
120 auto const removedBegin = std::remove_if(m_queue.begin(), m_queue.end(), _pred);
121
122 return removeRange(removedBegin, m_queue.end());
123 }
124
125 bool replace(h256 const& _hash, T&& _t)
126 {

Callers 1

DEV_GUARDEDFunction · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected