Template Function Nextsim::tryConfigure(T&)¶
Function Documentation¶
-
template<typename T>
void Nextsim::tryConfigure(T &t)¶ Template function for conditionally configuring references.
Pass any class to this function (or its pointer 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:
ref – A reference to the class on which to attempt configuration.