Jpp  18.0.0-rc.4
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JAbstractClass.hh
Go to the documentation of this file.
1 #ifndef __JLANG__JABSTRACTCLASS__
2 #define __JLANG__JABSTRACTCLASS__
3 
4 #include <type_traits>
5 
6 
7 /**
8  * \author mdejong
9  */
10 
11 namespace JLANG {}
12 namespace JPP { using namespace JLANG; }
13 
14 namespace JLANG {
15 
16  /**
17  * Template class test for abstractness.
18  */
19  template<class T>
20  struct JAbstractClass {
21  static const bool is_abstract = std::is_abstract<T>::value; //!< true of class is abstract; else false
22  };
23 }
24 
25 #endif
static const bool is_abstract
true of class is abstract; else false
Template class test for abstractness.