template<typename T>
struct icl_core::ExpectedTypeIs< T >
An object bearing the information that the expected type of some operation is T. If you have a complex function which will return an object of a certain type depending on runtime circumstances, you can write another function that will quickly inspect the parameters to provide information on the type returned by the complex function. Usage example:
class Foo :
public BaseClass { ... };
class Bar :
public BaseClass { ... };
class ComplexOp
{
...
BaseClass::Ptr complexOperation(int parameter);
{
}
};
- See also
- ExpectedType for how to use the expected type result.
Definition at line 33 of file ExpectedType.h.