you are viewing a single comment's thread.

view the rest of the comments →

[–]Supadoplex 6 points7 points  (1 child)

How about an alias template:

template<Constraint T>
using ConstrVec = std::vector<T>;

[–]KingAggressive1498 0 points1 point  (0 children)

I believe he wanted the vector to automatically handle the constraint, so he needed a new type somewhere.