lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
enable_if.h
00001 /*****************************************************/
00002 /* lean Meta                    (c) Tobias Zirr 2011 */
00003 /*****************************************************/
00004 
00005 #ifndef LEAN_META_ENABLE_IF
00006 #define LEAN_META_ENABLE_IF
00007 
00008 namespace lean
00009 {
00010 namespace meta
00011 {
00012 
00014 template <bool Cond, class Type>
00015 struct enable_if
00016 {
00018     typedef Type type;
00019 };
00020 
00021 #ifndef DOXYGEN_SKIP_THIS
00022 
00023 template <class Type>
00024 struct enable_if<false, Type> { };
00025 
00026 #endif
00027 
00028 } // namespace
00029 
00030 using meta::enable_if;
00031 
00032 } // namespace
00033 
00034 #endif