Namespaces
Variants
Views
Actions

std::locale::id::id

From cppreference.com
< cpp‎ | locale‎ | locale‎ | id
Revision as of 19:09, 31 May 2013 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Defined in header <locale>
id();
(1)
id(const id&) = delete;
(2)

1) default constructor: creates an object of type std::locale::id with implementation-specific content.

2) copy constructor is deleted; std::locale::id is not copyable.

[edit] Notes

Because locales and facets must be available for the IO stream objects with static storage duration, such as std::cout, typical implementations let implicit default constructor zero-initialize the contents of std::locale::id during static initialization (before constructors run for static objects), and when a facet is added to any locale for the first time, the locale completes initialization of the facet's id.