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

Function ForEachPoint

generator/affiliation.cpp:66–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64
65template <typename T, typename F>
66void ForEachPoint(T && t, F && f)
67{
68 using Type = RemoveCvrefT<T>;
69 if constexpr (std::is_same_v<Type, FeatureBuilder>)
70 t.ForEachPoint(std::forward<F>(f));
71 else if constexpr (std::is_same_v<Type, m2::PointD>)
72 f(std::forward<T>(t));
73 else
74 UNREACHABLE();
75}
76
77// An implementation for CountriesFilesAffiliation class.
78template <typename T>

Callers 1

GetHonestAffiliationsFunction · 0.85

Calls 1

ForEachPointMethod · 0.45

Tested by

no test coverage detected