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.

Classes

struct  lexical_cast_helper< Source, Destination >
 
struct  lexical_cast_helper< std::string, Destination >
 
struct  lexical_cast_helper< const char *, Destination >
 
struct  lexical_cast_helper< char *, Destination >
 
struct  lexical_cast_helper< Source, std::string >
 
struct  lexical_cast_helper< const Source &, std::string >
 
struct  lexical_cast_helper< std::string, std::string >
 
struct  lexical_cast_helper< const char *, std::string >
 
struct  lexical_cast_helper< char *, std::string >
 
struct  lexical_cast_helper< std::string, const char * >
 

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