MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / segmentIsPartOfSegmentList

Function segmentIsPartOfSegmentList

lib/utils/temp-variable.cpp:225–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223
224template<typename T>
225static bool
226segmentIsPartOfSegmentList(const MacroSegment *segment,
227 const std::deque<std::shared_ptr<T>> &segmentList)
228{
229 for (const auto &segmentFromList : segmentList) {
230 if (segment == segmentFromList.get()) {
231 return true;
232 }
233 }
234 return false;
235}
236
237static bool segmentIsPartOfMacro(const MacroSegment *segment,
238 const Macro *macro)

Callers 1

segmentIsPartOfMacroFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected