FloatFormatter< T, fieldWidth, precision, lJust, padding, pad, base, errchr > Struct Template Reference

This functor formats floats, doubles, and long doubles in the way that should be done for class fmtd<> More...

#include <fmtd.h>

List of all members.

Public Member Functions

size_t operator() (T const &v, char *buffer, int buffsize)
 Convert the specified value into an ascii string and return the length. Do not write more than buffsize bytes (including the trailing null).

Detailed Description

template<class T, int fieldWidth, int precision, int lJust, int padding, int pad, int base, int errchr>
struct cxxtls::fmtdalgo::FloatFormatter< T, fieldWidth, precision, lJust, padding, pad, base, errchr >

This functor formats floats, doubles, and long doubles in the way that should be done for class fmtd<>

Definition at line 160 of file fmtd.h.


Member Function Documentation

size_t operator() ( T const &  v,
char *  buffer,
int  buffsize 
)

Convert the specified value into an ascii string and return the length. Do not write more than buffsize bytes (including the trailing null).

Obeys the template parameters.

Fills the output with errchr if the data won't fit.

Definition at line 166 of file fmtd.h.

Here is the call graph for this function:


The documentation for this struct was generated from the following file:
Generated on Wed Feb 29 22:58:54 2012 for CXXUtilities by  doxygen 1.6.3