C++ IOS Library - getloc


Advertisements

Description

It is used to get current locale and returns the locale object currently associated with the stream.

Declaration

Following is the declaration for ios_base::getloc function.

locale getloc() const;

Parameters

none

Return Value

The locale object currently associated with the stream.

Exceptions

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

Data races

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

ios.htm
Advertisements