Template Function Nextsim::tryConfigure(T *)¶
Function Documentation¶
-
template<typename T>
void Nextsim::tryConfigure(T *p_t)¶ Template function for conditionally configuring classes via a pointer.
Pass any class to this function (or its reference equivalent). If it is a derived class of Configured, the overridden configure() function will be called. If it is not, the function will do nothing, gracefully.
- Parameters:
ptr – A pointer to the class on which to attempt configuration.