libpnicore
Static Public Attributes
pni::core::convertible< ST, TT > Struct Template Reference

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
 

Detailed Description

template<typename ST, typename TT>
struct pni::core::convertible< ST, TT >

Use this template to check whether two types are convertible or not. The types can be either checked or unchecked convertible.

Template Parameters
STsource type
TTtarget type

The documentation for this struct was generated from the following file: