This struct template implements a meta-function to determine if the (template parameter) t_FROM_TYPE is convertible to the (template parameter) t_TO_TYPE. This struct derives from bsl::true_type if the t_FROM_TYPE is convertible to t_TO_TYPE, and from bsl::false_type otherwise. Note that both t_FROM_TYPE and t_TO_TYPE should be complete types, arrays of unknown bound, or (possibly cv-qualified) void types.
Declared in <bslmf_isconvertible.h>
template<
class t_FROM_TYPE,
class t_TO_TYPE>
struct IsConvertible
: bsl::is_convertible<t_FROM_TYPE, t_TO_TYPE>::type
| Name | Description |
|---|---|
bsl::is_convertible<t_FROM_TYPE, t_TO_TYPE>::type |