|
piranha
0.10
|
Default implementation of piranha::safe_cast(). More...
#include <piranha/safe_cast.hpp>
Public Member Functions | |
| template<typename T , enabler< T > = 0> | |
| To | operator() (const T &f) const |
| Call operator. More... | |
Default implementation of piranha::safe_cast().
The default implementation of piranha::safe_cast() is activated only when the source type coincides with the target type. A copy of the input value will be returned.
Definition at line 63 of file safe_cast.hpp.
|
inline |
Call operator.
T, To and From are the same type,To is copy-constructible.| f | conversion argument. |
f.| unspecified | any exception thrown by the copy/move constructor of From. |
Definition at line 85 of file safe_cast.hpp.
1.8.14