MCPcopy Create free account
hub / github.com/comaps/comaps / ForAnyPoint

Function ForAnyPoint

generator/affiliation.cpp:52–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51template <typename T, typename F>
52bool ForAnyPoint(T && t, F && f)
53{
54 using Type = RemoveCvrefT<T>;
55 if constexpr (std::is_same_v<Type, FeatureBuilder>)
56 return t.ForAnyPoint(f);
57 if constexpr (std::is_same_v<Type, std::vector<m2::PointD>>)
58 return base::AnyOf(t, f);
59 if constexpr (std::is_same_v<Type, m2::PointD>)
60 return f(t);
61
62 UNREACHABLE();
63}
64
65template <typename T, typename F>
66void ForEachPoint(T && t, F && f)

Callers 1

GetAffiliationsFunction · 0.85

Calls 2

AnyOfFunction · 0.85
ForAnyPointMethod · 0.80

Tested by

no test coverage detected