ADTF  3.18.2
std_to_string.h
Go to the documentation of this file.
1 
15 #ifndef DD_STD_TO_STRING_WRAP
16 #define DD_STD_TO_STRING_WRAP
17 
18 #ifdef __QNX__
19 #include <sstream>
20 #include <stdlib.h>
21 #include <string>
22 
23 namespace std {
27 template <typename T>
28 string to_string(T value)
29 {
30  ostringstream convert;
31  convert << value;
32  return convert.str();
33 }
34 
38 inline unsigned long stoul(const std::string& string_value)
39 {
40  char* endptr = {};
41  return strtoul(string_value.c_str(), &endptr, 10);
42 }
43 
47 inline int stoi(const std::string& string_value)
48 {
49  return atoi(string_value.c_str());
50 }
51 
52 } // namespace std
53 
54 #endif
55 
56 #endif // DD_STD_TO_STRING_WRAP
cString to_string(const tResult &i_oResult, eResultFormatFlags i_eFormatFlags=eResultFormatFlags::RFF_DisableNone, const tChar *i_strFormat=nullptr)
Copy all information of an assigned result object to a (formatted) string.