basic_streambuf::getloc

到basic_streambuf对象的区域设置。

locale getloc( ) const;

返回值

存储的区域设置对象。

备注

有关相关信息,请参见 ios_base::getloc

示例

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

int main( ) 
{
   using namespace std;
   cout << cout.rdbuf( )->getloc( ).name( ).c_str( ) << endl;
}
  

要求

标头: <streambuf>

命名空间: std

请参见

参考

basic_streambuf Class

iostream编程

(mfc)约定