Otclient  14/8/2020
cast.h File Reference
#include "exception.h"
#include "demangle.h"
#include <sstream>
#include <iostream>
#include <cstdlib>
Include dependency graph for cast.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  stdext::cast_exception
 

Namespaces

 stdext
 

Functions

template<typename T , typename R >
bool stdext::cast (const T &in, R &out)
 
template<typename T >
bool stdext::cast (const T &in, std::string &out)
 
template<>
bool stdext::cast (const std::string &in, std::string &out)
 
template<>
bool stdext::cast (const std::string &in, bool &b)
 
template<>
bool stdext::cast (const std::string &in, char &c)
 
template<>
bool stdext::cast (const std::string &in, long &l)
 
template<>
bool stdext::cast (const std::string &in, int &i)
 
template<>
bool stdext::cast (const std::string &in, double &d)
 
template<>
bool stdext::cast (const std::string &in, float &f)
 
template<>
bool stdext::cast (const bool &in, std::string &out)
 
template<typename R , typename T >
stdext::safe_cast (const T &t)
 
template<typename R , typename T >
stdext::unsafe_cast (const T &t, R def=R())