.. _program_listing_file__tmp_ws_src_ecl_core_ecl_mpl_include_ecl_mpl_bool.hpp: Program Listing for File bool.hpp ================================= |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/ecl_core/ecl_mpl/include/ecl/mpl/bool.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp /***************************************************************************** ** 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 type; typedef bool value_type; operator bool() const { return x; } virtual ~Bool(){}; }; typedef Bool False; typedef Bool True; } // namespace ecl #endif /* ECL_MPL_BOOL_HPP_ */