다음을 통해 공유


basic_ios::imbue

Changes the locale.

locale imbue( 
   const locale& _Loc 
);

매개 변수

  • _Loc
    A locale string.

반환 값

The previous locale.

설명

If rdbuf is not a null pointer, the member function calls

rdbuf->pubimbue(_Loc)

In any case, it returns ios_base::imbue(_Loc).

예제

// basic_ios_imbue.cpp
// compile with: /EHsc
#include <iostream>
#include <locale>

int main( ) 
{
   using namespace std;
   
   cout.imbue( locale( "french_france" ) );
   double x = 1234567.123456;
   cout << x << endl;
}

요구 사항

Header: <ios>

네임스페이스: std

참고 항목

참조

basic_ios 클래스

iostream 프로그래밍

iostreams 규칙