S
Shmulik
Is there a way to constrain a Generics class to only accept specific value
types,
for instance, lets say I want to create a Histogram class that could accept
the types int, float, double, etc., but not char or string.
Is is possible to declare the class to do this?
class Histogram<T values> : constrain to {int, float, double}
{
....
Histogram<T v)
{
}
}
types,
for instance, lets say I want to create a Histogram class that could accept
the types int, float, double, etc., but not char or string.
Is is possible to declare the class to do this?
class Histogram<T values> : constrain to {int, float, double}
{
....
Histogram<T v)
{
}
}