dimanche 6 décembre 2015

std::integer_sequence containing 0 on specific position

How to implement function

constexpr std::integer_sequence generateSequence(int length, int position_of_zero);

which returns integer sequence containing 1 on all positions exept one given as function parameter?

Aucun commentaire:

Enregistrer un commentaire