BDE 4.14.0 Production release
|
Provide a compile-time check for types convertible to any type.
This component provides a meta-function, bslmf::IsConvertibleToAny
, that may be used to query (at compile-time) whether a type has a templatized conversion operator allowing it to be converted to any other type.
In this section we show the intended use of this component.
Suppose that we want to assert whether a particular type has a template conversion operator.
First, we define a type with the template conversion operator:
Now, we instantiate the bslmf::IsConvertibleToAny
template for TypeWithTemplateConversion
and assert the value
of the instantiation: