Program Listing for File enable_if.hpp
↰ Return to documentation for file (include/ecl/mpl/enable_if.hpp
)
/*****************************************************************************
** Ifdefs
*****************************************************************************/
#ifndef ECL_MPL_ENABLE_HPP_
#define ECL_MPL_ENABLE_HPP_
/*****************************************************************************
** Namespaces
*****************************************************************************/
namespace ecl {
template <bool B, class T = void>
struct enable_if_c
{
typedef T type;
};
template <class T>
struct enable_if_c<false, T>
{};
template <class Condition, class T = void>
struct enable_if : public enable_if_c<Condition::value, T>
{};
} //namespace ecl
#endif /* ECL_MPL_ENABLE_HPP_ */