#include <boost/range/adaptor/indexed.hpp>
#include <vector>
#include <string>
#include <iostream>
std::vector<std::string> strings{10, "Hello"};
int main(){
strings[5] = "World";
for(auto const& el: strings| boost::adaptors::indexed(0))
{
std::cout << el.index() << ": " << el.value() << std::endl;
}
}
CSNpbmNsdWRlIDxib29zdC9yYW5nZS9hZGFwdG9yL2luZGV4ZWQuaHBwPgogICAgI2luY2x1ZGUgPHZlY3Rvcj4KICAgICNpbmNsdWRlIDxzdHJpbmc+CiAgICAjaW5jbHVkZSA8aW9zdHJlYW0+CiAgICAKICAgIHN0ZDo6dmVjdG9yPHN0ZDo6c3RyaW5nPiBzdHJpbmdzezEwLCAiSGVsbG8ifTsKICAgIGludCBtYWluKCl7CiAgICAgICAgc3RyaW5nc1s1XSA9ICJXb3JsZCI7CiAgICAgICAgZm9yKGF1dG8gY29uc3QmIGVsOiBzdHJpbmdzfCBib29zdDo6YWRhcHRvcnM6OmluZGV4ZWQoMCkpCiAgICAgICAgewogICAgICAgICAgc3RkOjpjb3V0IDw8IGVsLmluZGV4KCkgPDwgIjogIiA8PCBlbC52YWx1ZSgpIDw8IHN0ZDo6ZW5kbDsKICAgICAgICB9CiAgICB9