__is_convertible

From RAD Studio
Jump to: navigation, search

Go Up to Type Trait Functions (C++11) Index


Category

Type Trait Functions

Syntax

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 20.4.4.3 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