[#bsl-basic_stringbuf-getloc-06]
= xref:bsl.adoc[bsl]::xref:bsl/basic_stringbuf.adoc[basic&lowbar;stringbuf]::getloc
:relfileprefix: ../../
:mrdocs:

Locale access&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;stringbuf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
locale
getloc() const;
----

== Description

If pubimbue(loc) has been called, then the most recent `loc` is returned&period; Otherwise the global locale in effect at the time of construction is returned&period;

== Return Value

The current locale in effect&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
