From Appmethod Topics
Jump to: navigation, search

Go Up to Type Trait Functions (C++0x) Index


Type Trait Functions


bool __is_convertible ( typename From, typename To )

Returns true if and only if From is implicitly convertible to To.

Error if either From or To is an incomplete type.

Note: Exact test described in Working Draft Section is true if the following code is well formed:

template <class T>
typename add_rvalue_reference<T>::type create();

To test() { return create<From>(); |

See Also