C++ Locale Library - classic



Description

It is used to get classic locale [static] and returns the classic locale, which corresponds in semantics to the "C" locale.

Declaration

Following is the declaration for std::locale::classic.

C++98

	
   static const locale& classic();

C++11

   static const locale& classic();

Parameters

none

Return Value

It returns the classic locale, which corresponds in semantics to the "C" locale (the default locale).

Exceptions

Strong guarantee − if an exception is thrown, there are no effects.

locale.htm
Advertisements