C++ streambuf - getloc


Advertisements

Description

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

Declaration

Following is the declaration for std::basic_streambuf::getloc.

locale getloc() const;

Parameters

none

Return Value

It returns the locale object currently associated to the stream buffer.

Exceptions

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

Data races

It accesses the stream buffer object.

streambuf.htm
Advertisements