Sorry for the poor title, can\'t think of a succinct way of putting this.. I\'m thinking of having a list of objects that will all be of a specific interface. Each of these objects may then implement
I want the wra开发者_高级运维pper my_function to be able to receive either a class or class instance, instead of writing two different functions:
Before I look through my generic data structure for a value\'s index, I\'d like to see if it is even an instance of the type this has been parametrized to.