In C++11 and later, you can initialise container elements by passing constructor arguments to an emplace
function:
oneItemIndexes.emplace_back(i);
Historically, you could copy-initialise them (as long as they're copyable; but that was a requirement for vector
before C++11):
oneItemIndexes.push_back(OneItemIndex(i));