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

Method ForEach

libs/coding/compressed_bit_vector.hpp:154–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152
153 template <typename Fn>
154 void ForEach(Fn && f) const
155 {
156 base::ControlFlowWrapper<Fn> wrapper(std::forward<Fn>(f));
157 for (auto const & position : m_positions)
158 if (wrapper(position) == base::ControlFlow::Break)
159 return;
160 }
161
162 // CompressedBitVector overrides:
163 uint64_t PopCount() const override;

Callers

nothing calls this directly

Calls 1

wrapperFunction · 0.50

Tested by

no test coverage detected