Public Member Functions | Private Attributes | List of all members
internal::char_converter< Context > Class Template Reference

#include <printf.h>

Inheritance diagram for internal::char_converter< Context >:
internal::function< void >

Public Member Functions

 char_converter (basic_format_arg< Context > &arg)
 
template<typename T >
std::enable_if< std::is_integral< T >::value >::type operator() (T value)
 
template<typename T >
std::enable_if<!std::is_integral< T >::value >::type operator() (T)
 

Private Attributes

basic_format_arg< Context > & arg_
 

Detailed Description

template<typename Context>
class internal::char_converter< Context >

Definition at line 265 of file printf.h.

Constructor & Destructor Documentation

template<typename Context >
internal::char_converter< Context >::char_converter ( basic_format_arg< Context > &  arg)
inlineexplicit

Definition at line 270 of file printf.h.

270 : arg_(arg) {}
basic_format_arg< Context > & arg_
Definition: printf.h:267

Member Function Documentation

template<typename Context >
template<typename T >
std::enable_if<std::is_integral<T>::value>::type internal::char_converter< Context >::operator() ( value)
inline

Definition at line 274 of file printf.h.

274  {
275  typedef typename Context::char_type Char;
276  arg_ = internal::make_arg<Context>(static_cast<Char>(value));
277  }
basic_format_arg< Context > & arg_
Definition: printf.h:267
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1225
template<typename Context >
template<typename T >
std::enable_if<!std::is_integral<T>::value>::type internal::char_converter< Context >::operator() ( )
inline

Definition at line 280 of file printf.h.

280  {
281  // No coversion needed for non-integral types.
282  }

Member Data Documentation

template<typename Context >
basic_format_arg<Context>& internal::char_converter< Context >::arg_
private

Definition at line 267 of file printf.h.


The documentation for this class was generated from the following file: