Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Format

This module provides printf like functionality integrated into iostreams and suitable for localization. More...

Classes

class  boost::locale::basic_format< CharType >
 a printf like class that allows type-safe and locale aware message formatting More...
 

Typedefs

typedef basic_format< char > boost::locale::format
 Definition of char based format. More...
 
typedef basic_format< wchar_t > boost::locale::wformat
 Definition of wchar_t based format. More...
 

Functions

template<typename CharType >
std::basic_ostream< CharType > & boost::locale::operator<< (std::basic_ostream< CharType > &out, basic_format< CharType > const &fmt)
 Write formatted message to stream. More...
 

Detailed Description

This module provides printf like functionality integrated into iostreams and suitable for localization.

Typedef Documentation

typedef basic_format<char> boost::locale::format

#include <boost_1_57_0/boost/locale/format.hpp>

Definition of char based format.

typedef basic_format<wchar_t> boost::locale::wformat

#include <boost_1_57_0/boost/locale/format.hpp>

Definition of wchar_t based format.

Function Documentation

template<typename CharType >
std::basic_ostream<CharType>& boost::locale::operator<< ( std::basic_ostream< CharType > &  out,
basic_format< CharType > const &  fmt 
)

#include <boost_1_57_0/boost/locale/format.hpp>

Write formatted message to stream.

This operator actually causes actual text formatting. It uses the locale of out stream

References boost::out, and boost::locale::basic_format< CharType >::write().