Jpp  master_rocky-40-g5f0272dcd
the software that should make you happy
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
Auxiliary classes and methods for language specific functionality.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Template class test for abstractness.
static const bool is_abstract
true of class is abstract; else false