#include <stlsoft/util/constraints.hpp>
defines operator[]
or operator X*()
)
T | The type to be constrained |
typedef std::vector<int> vec_t; stlsoft::must_be_subscriptable<int*>(); // Ok stlsoft::must_be_subscriptable<vec_t>(); // Ok stlsoft::must_be_subscriptable<double>(); // Compile error!