MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / PopLayer

Method PopLayer

ZEngine/src/LayerStack.cpp:42–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41
42 void LayerStack::PopLayer(const Ref<Layer>& layer) {
43 const auto it = std::find_if(std::begin(m_layers), std::end(m_layers), [&layer](const Ref<Layer>& x) { return x == layer; });
44
45 if (it != std::end(m_layers)) {
46 current_it = m_layers.erase(it);
47 }
48 }
49
50 void LayerStack::PopLayer(Ref<Layer>&& layer) {
51 const auto it = std::find_if(std::begin(m_layers), std::end(m_layers), [&layer](const Ref<Layer>& x) { return x == layer; });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected