Program Listing for File bool.hpp
↰ Return to documentation for file (include/ecl/mpl/bool.hpp
)
/*****************************************************************************
** Ifdefs
*****************************************************************************/
#ifndef ECL_MPL_BOOL_HPP_
#define ECL_MPL_BOOL_HPP_
/*****************************************************************************
** Namespaces
*****************************************************************************/
namespace ecl {
/*****************************************************************************
** Using
*****************************************************************************/
template < bool x >
class Bool {
public:
static bool const value = x;
typedef Bool<x> type;
typedef bool value_type;
operator bool() const { return x; }
virtual ~Bool(){};
};
typedef Bool<false> False;
typedef Bool<true> True;
} // namespace ecl
#endif /* ECL_MPL_BOOL_HPP_ */