GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
stringUtils.h
Go to the documentation of this file.
1 
2 #ifndef STRINGUTILS_H
3 #define STRINGUTILS_H
4 
5 #include <string>
6 #include <sstream>
7 
8 
9 // Forward declarations
10 class NNmodel;
11 
12 using namespace std;
13 
14 
15 //--------------------------------------------------------------------------
18 //--------------------------------------------------------------------------
19 
20 template<class T> std::string toString(T t)
21 {
22  std::stringstream s;
23  s << std::showpoint << t;
24  return s.str();
25 }
26 
27 #define tS(X) toString(X)
28 
29 #endif // STRINGUTILS_H
Definition: modelSpec.h:132
std::string toString(T t)
template functions for conversion of various types to C++ strings
Definition: stringUtils.h:20