A simple index wrapper implementation in C++.