public member function
<ios> <iostream>

std::ios_base::getloc

locale getloc() const;
Get current locale
Returns the locale object currently associated with the stream.

Parameters

none

Return Value

The locale object currently associated with the stream.

Data races

Accesses the stream object.
Concurrent access to the same stream object may cause data races.

Exception safety

Strong guarantee: if an exception is thrown, there are no changes in the stream.

See also