MCPcopy Create free account
hub / github.com/Profactor/cv-plot / findIterator

Method findIterator

CvPlot/inc/CvPlot/core/DrawableDeque.h:84–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83template<typename SomeDrawable>
84DrawableDeque::Drawables::iterator DrawableDeque::findIterator() {
85 return std::find_if(_drawables.begin(), _drawables.end(), [](const std::unique_ptr<Drawable> &ptr) {
86 return dynamic_cast<SomeDrawable*>(ptr.get()) != nullptr;
87 });
88}
89
90template<typename SomeDrawable>
91DrawableDeque::Drawables::iterator DrawableDeque::findIterator(const std::string &name) {

Callers 1

examples_core.cppFile · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected