Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
Function object wrapper for as(). More...
#include <Teuchos_as.hpp>
Public Member Functions | |
asFunc () | |
template<class TypeFrom > | |
TypeTo | operator() (const TypeFrom &t) |
Function object wrapper for as().
TypeTo | Type to which to convert; the output type. |
Sometimes it is useful to pass around the as() type conversion function as a first-class object, for example as a function argument of generic algorithms such as std::transform(). In this case, you may use this class, which invokes as() in its operator() method. The operator() method is templated on the input type TypeFrom.
Definition at line 340 of file Teuchos_as.hpp.
|
inline |
Definition at line 342 of file Teuchos_as.hpp.
|
inline |
Definition at line 345 of file Teuchos_as.hpp.