Namespaces
Variants
Views
Actions

std::locale::facet::facet

From cppreference.com
< cpp‎ | locale‎ | locale‎ | facet
Revision as of 18:58, 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 >
explicit facet( std::size_t refs = 0 );
</td>

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

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

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

1) creates a facet with starting reference count refs. If refs is non-zero, the facet will not be deleted when the last locale referencing it goes out of scope. A facet with static or dynamic storage duration should always be constructed with a non-zero refs.

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