basic_streambuf::getloc

Gets the basic_streambuf object's locale.

locale getloc( ) const;

Return Value

The stored locale object.

Remarks

For related information, see ios_base::getloc.

Example

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

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

Requirements

Header: <streambuf>

Namespace: std

See Also

Reference

basic_streambuf Class

iostream Programming

iostreams Conventions

Other Resources

basic_streambuf Members