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

Class CounterIterator

libs/base/stl_iterator.hpp:17–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15} // namespace stl_iterator_detail
16
17class CounterIterator
18 : public boost::iterator_facade<CounterIterator, stl_iterator_detail::Dummy, boost::forward_traversal_tag>
19{
20 size_t m_count;
21
22public:
23 CounterIterator() : m_count(0) {}
24 size_t GetCount() const { return m_count; }
25
26 stl_iterator_detail::Dummy & dereference() const
27 {
28 static stl_iterator_detail::Dummy dummy;
29 return dummy;
30 }
31 void increment() { ++m_count; }
32};

Callers 3

IntersectionLenFunction · 0.85
LoadStreetsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected