Namespaces
Variants
Views
Actions

std::locale::id::id

From cppreference.com
< cpp‎ | locale‎ | locale‎ | id
Revision as of 19:54, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <locale>
</td>

<td></td> <td></td> <tr class="t-dcl ">

<td >
id();
</td>

<td > (1) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">

<td >
id(const id&) = delete;
</td>

<td > (2) </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

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.

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.