MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / remove

Method remove

src/Core/Graphics/Canvas.cpp:248–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246 }
247
248 void Canvas::remove(const std::string& id)
249 {
250 m_elements.erase(std::remove_if(m_elements.begin(), m_elements.end(),
251 [&id](auto& elem) { return elem->getId() == id; }),
252 m_elements.end());
253 }
254
255 Texture Canvas::getTexture() const
256 {

Callers 1

clearMethod · 0.45

Calls 4

getIdMethod · 0.80
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected