This file defines the class, fmtio::cs, that is used to help in formatting text using a printf style control string instead of using the iomanip objects. It can also be used to populate std::strings with formatted text. More...
#include <portable_io.h>#include <iostream>#include <string>#include <sstream>#include <iomanip>

Go to the source code of this file.
Classes | |
| class | cs |
| The type of an expression that can be printed using operator <<. More... | |
| struct | Char |
| struct | classification< T > |
| Contains member, printableClass, that indicates the printing style of type T. More... | |
| struct | classification< char * > |
| struct | classification< char > |
| struct | classification< double > |
| struct | classification< float > |
| struct | classification< int > |
| < Superseeds the default printing type category for pointers. More... | |
| struct | classification< long > |
| struct | classification< long long > |
| struct | classification< short > |
| struct | classification< std::string > |
| struct | classification< T * > |
| struct | classification< unsigned char * > |
| struct | classification< unsigned char > |
| struct | classification< unsigned char const * > |
| struct | classification< unsigned int > |
| struct | classification< unsigned long > |
| struct | classification< unsigned long long > |
| struct | classification< unsigned short > |
| struct | deconstify< T > |
| struct | deconstify< T const > |
| struct | devolify< T > |
| struct | devolify< T volatile > |
| struct | DoubleFloat |
| struct | Exception |
| < Invalid format type specified for a given actual data type More... | |
| struct | Float |
| struct | Integral |
| struct | isClassType< Type > |
| Declares a const member, value, which is either 0 or 1 depending on whether or not Type is a class object or not. More... | |
| struct | StlString |
| struct | String |
| struct | typeDetector< 0 > |
| struct | typeDetector< 1 > |
| This template struct defines a nested type, type, which is a typedef for one of the following: More... | |
| struct | Unsigned |
| struct | UserDefined |
Namespaces | |
| namespace | fmtio |
A namespace encapsulating text formatting functions using control strings like those found in printf and doing it 3 times faster than boost's format class. | |
| namespace | fmtio::printableType |
namespace holding expression classifier types and methods. | |
Functions | |
| template<class T > | |
| classification< typename deconstify< T >::type > ::printableClass | classifier (T const &t) |
| The template function, classifier<T>, returns a different type based on its parameter. | |
| std::ostream & | operator<< (std::ostream &s, cs const &fmt) |
This file defines the class, fmtio::cs, that is used to help in formatting text using a printf style control string instead of using the iomanip objects. It can also be used to populate std::strings with formatted text.
cs runs about 3 times faster than boost::format() but is not identical to it.
Definition in file fmtio.h.
1.6.3