Namespaces | Classes | Functions
zorba::internal::ztd Namespace Reference

Namespaces

namespace  has_insertion_operator_impl
 

Classes

struct  destroy_delete
 A deleter class that can be used with unique_ptr. More...
 
class  explicit_bool
 Helper class for implementing a solution to the "explicit bool conversion" problem. More...
 
struct  has_insertion_operator
 
struct  less
 
struct  less< char const * >
 
class  proxy
 
class  sfinae_base
 

Functions

template<class StringType >
StringType::const_pointer c_str (StringType const &s)
 
char const * c_str (char const *s)
 
template<typename T >
std::enable_if
<!ZORBA_TR1_NS::is_pointer< T >
::value
&&has_insertion_operator<T >
::value, std::string >::type 
to_string (T const &t)
 
template<class T >
std::enable_if
<!has_insertion_operator<T >
::value &&has_c_str< T, char
const *(T::*)() const >
::value, std::string >::type 
to_string (T const &t)
 
template<class T >
std::enable_if
<!has_insertion_operator<T >
::value &&!has_c_str< T, char
const *(T::*)() const >
::value &&has_str< T,
std::string(T::*)() const >
::value &&!has_toString< T,
std::string(T::*)() const >
::value, std::string >::type 
to_string (T const &t)
 
template<class T >
std::enable_if
<!has_insertion_operator<T >
::value &&!has_c_str< T, char
const *(T::*)() const >
::value &&!has_str< T,
std::string(T::*)() const >
::value &&has_toString< T,
std::string(T::*)() const >
::value, std::string >::type 
to_string (T const &t)
 
template<typename T >
std::enable_if
< ZORBA_TR1_NS::is_pointer< T >
::value, std::string >::type 
to_string (T p)
 
std::string to_string (char const *s)
 
 ZORBA_DECL_HAS_MEM_FN (c_str)
 
 ZORBA_DECL_HAS_MEM_FN (str)
 
 ZORBA_DECL_HAS_MEM_FN (toString)
 

Function Documentation

template<class StringType >
StringType::const_pointer zorba::internal::ztd::c_str ( StringType const &  s)
inline
char const* zorba::internal::ztd::c_str ( char const *  s)
inline

Definition at line 190 of file ztd.h.

template<typename T >
std::enable_if<!ZORBA_TR1_NS::is_pointer<T>::value && has_insertion_operator<T>::value, std::string>::type zorba::internal::ztd::to_string ( T const &  t)
inline

Definition at line 275 of file ztd.h.

Referenced by zorba::internal::diagnostic::parameters::operator,(), and to_string().

template<class T >
std::enable_if<!has_insertion_operator<T>::value && has_c_str<T,char const* (T::*)() const>::value, std::string>::type zorba::internal::ztd::to_string ( T const &  t)
inline

Definition at line 296 of file ztd.h.

template<class T >
std::enable_if<!has_insertion_operator<T>::value && !has_c_str<T,char const* (T::*)() const>::value && has_str<T,std::string (T::*)() const>::value && !has_toString<T,std::string (T::*)() const>::value, std::string>::type zorba::internal::ztd::to_string ( T const &  t)
inline

Definition at line 319 of file ztd.h.

template<class T >
std::enable_if<!has_insertion_operator<T>::value && !has_c_str<T,char const* (T::*)() const>::value && !has_str<T,std::string (T::*)() const>::value && has_toString<T,std::string (T::*)() const>::value, std::string>::type zorba::internal::ztd::to_string ( T const &  t)
inline

Definition at line 342 of file ztd.h.

template<typename T >
std::enable_if<ZORBA_TR1_NS::is_pointer<T>::value,std::string>::type zorba::internal::ztd::to_string ( p)
inline

Definition at line 357 of file ztd.h.

References to_string().

std::string zorba::internal::ztd::to_string ( char const *  s)
inline

Definition at line 369 of file ztd.h.

zorba::internal::ztd::ZORBA_DECL_HAS_MEM_FN ( c_str  )
zorba::internal::ztd::ZORBA_DECL_HAS_MEM_FN ( str  )
zorba::internal::ztd::ZORBA_DECL_HAS_MEM_FN ( toString  )
blog comments powered by Disqus