sprint 1-alpha
|
permits to convert in efficient way one type to another More...
Go to the source code of this file.
Namespaces | |
namespace | sprint |
Sprint is a lightweight c++ library to handle different task with crossplatform attention (trying to compile both on MSVC and Mingw on WIn32 and GCC on Linux. | |
Functions | |
template<class D , class S > | |
D | sprint::smart_cast (S s) |
default convert: static_cast | |
template<class D , class S , class P > | |
D | sprint::smart_cast (S s, P p) |
a conversion with a parameter | |
template<> | |
int | sprint::smart_cast< int, const char * > (const char *str) |
template<> | |
int | sprint::smart_cast< int, std::string > (std::string str) |
template<> | |
int | sprint::smart_cast< int, char * > (char *str) |
template<> | |
unsigned int | sprint::smart_cast< unsigned int, const char * > (const char *str) |
template<> | |
unsigned int | sprint::smart_cast< unsigned int, std::string > (std::string str) |
template<> | |
unsigned int | sprint::smart_cast< unsigned int, char * > (char *str) |
template<> | |
long | sprint::smart_cast< long, const char * > (const char *str) |
template<> | |
long | sprint::smart_cast< long, std::string > (std::string str) |
template<> | |
long | sprint::smart_cast< long, char * > (char *str) |
template<> | |
unsigned long | sprint::smart_cast< unsigned long, const char * > (const char *str) |
template<> | |
unsigned long | sprint::smart_cast< unsigned long, char * > (char *str) |
template<> | |
float | sprint::smart_cast< float, const char * > (const char *str) |
template<> | |
float | sprint::smart_cast< float, std::string > (std::string str) |
template<> | |
float | sprint::smart_cast< float, char * > (char *str) |
template<> | |
double | sprint::smart_cast< double, const char * > (const char *str) |
template<> | |
double | sprint::smart_cast< double, std::string > (std::string str) |
template<> | |
bool | sprint::smart_cast< bool, std::string > (std::string str) |
template<> | |
const char * | sprint::smart_cast< const char *, std::string > (std::string str) |
template<> | |
std::string | sprint::smart_cast< std::string, bool > (bool value) |
template<> | |
const char * | sprint::smart_cast< const char *, bool > (bool value) |
template<> | |
double | sprint::smart_cast< double, char * > (char *str) |
template<> | |
std::string | sprint::smart_cast< std::string, int > (int n) |
template<> | |
std::string | sprint::smart_cast< std::string, unsigned int > (unsigned int n) |
template<> | |
std::string | sprint::smart_cast< std::string, long int > (long int n) |
template<> | |
std::string | sprint::smart_cast< std::string, unsigned long int > (unsigned long int n) |
template<> | |
std::string | sprint::smart_cast< std::string, double > (double n) |
template<> | |
std::string | sprint::smart_cast< std::string, double > (double n, int d) |
template<> | |
std::string | sprint::smart_cast< std::string, float > (float n) |
template<> | |
std::string | sprint::smart_cast< std::string, float > (float n, int d) |
permits to convert in efficient way one type to another