lexical_cast.h File Reference
#include <sstream>#include <iomanip>#include <limits>#include "interop/util/math.h"#include "interop/util/type_traits.h"Go to the source code of this file.
Namespaces | |
| illumina | |
| illumina::interop | |
| illumina::interop::util | |
Functions | |
| template<class Destination , class Source > | |
| Destination | lexical_cast (const Source &src) |
| std::string | format (const float val, const int width, const int precision, const char fill= ' ', const bool fixed=true) |
Detailed Description
Convert between arbitrary types
Type conversion can be done in many ways in C++, but there is no simple portable method to convert between std::string and int and back. This library provides a limited version of the Boost.Lexical_cast.
- Date
- 8/9/15
- Version
- 1.0
- Copyright
- GNU Public License.