Dev Essential  1.6.3
Loading...
Searching...
No Matches
std_to_string.h
Go to the documentation of this file.
1
14
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
23namespace std {
27template <typename T>
28string to_string(T value)
29{
30 ostringstream convert;
31 convert << value;
32 return convert.str();
33}
34
38inline unsigned long stoul(const std::string& string_value)
39{
40 char* endptr = {};
41 return strtoul(string_value.c_str(), &endptr, 10);
42}
43
47inline 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