RAD Studio |  |

__is_convertible
See Also
Collapse All

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:

Copy Code

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

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

See Also

C++0x Features (C++Builder 2009)

Type Trait Functions Overview

Working Draft - Standard for Programming Language C++ - http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2588.pdf

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!