libpnicore
|
check if two types are convertible More...
#include <convertible.hpp>
Static Public Attributes | |
static const bool | checked = checked_convertible<ST,TT>::value |
true if checked conversion is possible | |
static const bool | unchecked = unchecked_convertible<ST,TT>::value |
true if unchecked conversion is possible | |
static const bool | value = checked || unchecked |
true if a conversion can be done at all | |
Use this template to check whether two types are convertible or not. The types can be either checked or unchecked convertible.
ST | source type |
TT | target type |