Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::basic_streambuf<CharT,Traits>::getloc

Returns the associated locale.

NotebookLM
std::locale getloc() const;

Returns the associated locale.

The associated locale is the value supplied to pubimbue() on the last call, or, if that function has not been called, the value of the global locale (std::locale) at the time of the construction of the streambuf.

Parameters

(none)

Return value

The associated locale.

Example

This section is incomplete
Reason: no example

See also

changes the associated locale and invokes imbue()
(public member function)

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.