Namespaces
Variants
Actions

std::ios_base::getloc

From cppreference.com
< cpp‎ | io‎ | ios base
 
 
 
 
std::locale getloc() const;

Returns the current locale associated with the stream.

Contents

[edit] Parameters

(none)

[edit] Return value

The locale object associated with the stream.

[edit] Example

The output shown was obtained using the clang compiler.

#include <codecvt>
#include <ctime>
#include <iomanip>
#include <iostream>
 
int main()
{
    std::wbuffer_convert<std::codecvt_utf8<wchar_t>> conv(