Initialize attr_size inline:

    for(size_t i=0, attr_size=_names.size(), ...