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

Namespaces

 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
 
class  is_c_string
 
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_array< T >
::value
&&!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 &&ZORBA_HAS_C_STR(T),
std::string >::type 
to_string (T const &t)
 
template<class T >
std::enable_if
<!has_insertion_operator<T >
::value &&!ZORBA_HAS_C_STR(T)&&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 &&!ZORBA_HAS_C_STR(T)&&!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 &&!is_c_string< T >
::value, std::string >::type 
to_string (T p)
 
std::string to_string (char const *s)
 
std::string to_string (unsigned 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_array<T>::value && !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 299 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 && ZORBA_HAS_C_STR(T), std::string>::type zorba::internal::ztd::to_string ( T const &  t)
inline

Definition at line 320 of file ztd.h.

template<class T >
std::enable_if<!has_insertion_operator<T>::value && !ZORBA_HAS_C_STR(T) && 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 343 of file ztd.h.

template<class T >
std::enable_if<!has_insertion_operator<T>::value && !ZORBA_HAS_C_STR(T) && !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 366 of file ztd.h.

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

Definition at line 383 of file ztd.h.

References to_string().

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

Definition at line 396 of file ztd.h.

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

Definition at line 407 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  )