MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / operator*

Method operator*

tests/Issue255.cpp:13–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 bool operator==( const Iterator& other ) { return m_iterable == other.m_iterable && m_pos == other.m_pos; }
12 bool operator!=( const Iterator& other ) { return !( this->operator==( other ) ); }
13 access_type operator*() {
14 Widget tmp = m_iterable->m_storage[m_pos];
15 return std::get<access_type>( tmp );
16 }
17 Iterator operator++() {
18 m_pos++;
19 return *this;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected