MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / operator++

Method operator++

sql/sql_hset.h:82–87  ·  view source on GitHub ↗

Return the current element and reposition the iterator to the next element. */

Source from the content-addressed store, hash-verified

80 element.
81 */
82 inline T *operator++(int)
83 {
84 if (m_idx < m_hash->records)
85 return reinterpret_cast<T*>(my_hash_element(m_hash, m_idx++));
86 return NULL;
87 }
88 void rewind() { m_idx= 0; }
89 private:
90 HASH *m_hash;

Callers

nothing calls this directly

Calls 1

my_hash_elementFunction · 0.85

Tested by

no test coverage detected