Jpp  master_rocky-37-gf0c5bc59d
the software that should make you happy
JSwitch.hh
Go to the documentation of this file.
1 #ifndef __JLANG__JSWITCH__
2 #define __JLANG__JSWITCH__
3 
4 /**
5  * \author mdejong
6  */
7 
8 namespace JLANG {}
9 namespace JPP { using namespace JLANG; }
10 
11 namespace JLANG {
12 
13  /**
14  * Template selection of type specifier.
15  */
16  template<bool, class A, class B>
17  class JSwitch {
18  public:
19  typedef B value_type;
20  };
21 
22 
23  /**
24  * Template specialisation of selection of type specifier.
25  */
26  template<class A, class B>
27  class JSwitch<true, A, B> {
28  public:
29  typedef A value_type;
30  };
31 }
32 
33 #endif
Template selection of type specifier.
Definition: JSwitch.hh:17
Auxiliary classes and methods for language specific functionality.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).