Definition in file itos.h.
#include <cassert>
#include <sstream>
#include <string>
#include <cstdio>
Include dependency graph for itos.h:

Go to the source code of this file.
Namespaces | |
| namespace | cttl |
Functions | |
| CTTL_STD_STRING | itos (int i_) |
| Converts integer to string. | |
|
|
Converts integer to string. From Bjarne Stroustrup's C++ Style and Technique FAQ: http://www.research.att.com/~bs/bs_faq2.html How do I convert an integer to a string? The simplest way is to use a stringstream:
int i = 127; std::string ss = itos( i ); For a description of string streams, see 21.5.3 of The C++ Programming Language. |
1.3.9.1