PhoenixPresentation  2.0.0
Set of cmake function to automate presentation generation
drg_defaultValue.h
Go to the documentation of this file.
1 /***************************************
2  Auteur : Pierre Aubert
3  Mail : pierre.aubert@lapp.in2p3.fr
4  Licence : CeCILL-C
5 ****************************************/
6 
7 #ifndef __DEFAULT_VALUE_H__
8 #define __DEFAULT_VALUE_H__
9 
10 #include <string>
11 
13 
15 template<typename T>
16 inline T drg_defaultValue(){return (T)0;}
17 
19 
21 template<>
22 inline std::string drg_defaultValue<std::string>(){return "";}
23 
24 #endif
25 
T drg_defaultValue()
Get a default value.