MCPcopy Create free account
hub / github.com/Compaile/ctrack / countAllEvents

Function countAllEvents

include/ctrack.hpp:150–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148
149 template <typename T>
150 size_t countAllEvents(const std::deque<std::vector<T>> &events)
151 {
152 return std::transform_reduce(
153 OPT_EXEC_POLICY
154 events.begin(),
155 events.end(),
156 size_t(0),
157 std::plus<>(),
158 [](const auto &vec)
159 {
160 return vec.size();
161 });
162 }
163
164 struct ColorScheme
165 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected