次の方法で共有


numpunct::thousands_sep

桁区切り記号として使用するロケール固有の要素を返します。

CharType thousands_sep( ) const;

戻り値

桁区切り記号として使用するロケール固有の要素。

解説

このメンバー関数は do_thousands_sepを返します。

使用例

// 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;
};
  

必要条件

ヘッダー: <locale>

名前空間: std

参照

関連項目

numpunct Class