C++ Locale Library - num_put



Description

It is a facet to format numeric values and the num_put standard facet formats numeric values as sequences of characters. Its member put is called by standard output streams (such as ostream) to format numerical values inserted with the insertion operator (operator<<).

Declaration

Following is the declaration for std::num_put.

C++98

	
template <class charT, class OutputIterator = ostreambuf_iterator<charT> > class num_put;

C++11

template <class charT, class OutputIterator = ostreambuf_iterator<charT> > class num_put;

Parameters

  • charT − It is a character type.

  • OutputIterator − It is an output iterator type.

Return Value

none

Member types

Sr.No. Member type & description
1

char_type

It a character type facet.

2

iter_type

It a second template parameter.

locale.htm
Advertisements