If this was not a separate function, m_table and m_index could just be local variables rather than members.