std::basic_streambuf<CharT,Traits>::pubimbue, std::basic_streambuf<CharT,Traits>::imbue
From cppreference.com
 
 
 < cpp | io | basic streambuf 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
Input/output library 
 
 
 
 
 
 
 
 
 
 
 
 
 Print functions (C++23)
 Buffers
(C++23)
(C++98/26*)
(C++20)
 Streams
 Abstractions
 File I/O
 String I/O
 Array I/O
(C++23)
(C++23)
(C++23)
(C++98/26*)
(C++98/26*)
(C++98/26*)
 Synchronized Output
(C++20)
 Types
 Error category interface
(C++11)
(C++11)
std::basic_streambuf 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 Public member functions
 Locales
basic_streambuf::pubimbue
 Positioning
 Get area
 Put area
 Putback
 Protected member functions
(C++11)
(C++11)
 Locales
basic_streambuf::imbue
 Positioning
 Get area
 Put area
 Putback
std::locale pubimbue( const std::locale & loc );
 (1) 
 
protected:
virtual void imbue( const std::locale & loc );
 (2) 
 
virtual void imbue( const std::locale & loc );
Changes the associated locale.
1) Sets 
loc as the associated locale. Calls imbue(loc) of the most derived class2) The base class version of this function has no effect. The derived classes may override this function in order to be informed about the changes of the locale. The derived class may cache the locale and member facets between calls to 
imbue().Contents
[edit] Parameters
 loc
 -
 locale object to associate
[edit] Return value
1) Previous associated locale.
2) (none)
[edit] Notes
From within the call of imbue(), getloc() returns the previous locale.
[edit] Example
 This section is incomplete
Reason: no example
Reason: no example