ios_base::getloc

Returns the stored locale object.

locale getloc( ) const;

Return Value

The stored locale object.

Example

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

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

Requirements

Header: <ios>

Namespace: std

See Also

Reference

ios_base Class

iostream Programming

iostreams Conventions