Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JSwitch.hh
Go to the documentation of this file.
1#ifndef __JLANG__JSWITCH__
2#define __JLANG__JSWITCH__
3
4/**
5 * \author mdejong
6 */
7
8namespace JLANG {}
9namespace JPP { using namespace JLANG; }
10
11namespace 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).