numpunct::thousands_sep
Returns a locale-specific element to use as a thousands separator.
CharType thousands_sep( ) const;
Return Value
A locale-specific element to use as a thousands separator.
Remarks
The member function returns do_thousands_sep.
Example
// numpunct_thou_sep.cpp
// compile with: /EHsc
#include <locale>
#include <iostream>
#include <sstream>
using namespace std;
int main( )
{
locale loc( "german_germany" );
const numpunct <char> &npunct =
use_facet < numpunct < char > >( loc );
cout << loc.name( ) << " decimal point "<<
npunct.decimal_point( ) << endl;
cout << loc.name( ) << " thousands separator "
<< npunct.thousands_sep( ) << endl;
};
German_Germany.1252 decimal point , German_Germany.1252 thousands separator .
Requirements
Header: <locale>
Namespace: std