Import Geant4 11.4.0 source tree
This commit is contained in:
-15
@@ -6,8 +6,6 @@
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
#include "sto"
|
||||
|
||||
namespace tools {
|
||||
|
||||
inline bool is_env(const std::string& a_string){
|
||||
@@ -26,19 +24,6 @@ inline bool get_env(const std::string& a_string,std::string& a_value){
|
||||
}
|
||||
}
|
||||
|
||||
template <class T>
|
||||
inline bool get_env(const std::string& a_string,T& a_v,const T& a_def = T()){
|
||||
std::string _s;
|
||||
if(!get_env(a_string,_s)) {a_v = a_def;return false;}
|
||||
return to<T>(_s,a_v,a_def);
|
||||
}
|
||||
|
||||
inline bool get_env_bool(const std::string& a_string,bool& a_v){
|
||||
std::string _s;
|
||||
if(!get_env(a_string,_s)) return false;
|
||||
return to(_s,a_v);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user