std::locale::facet::facet - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::locale::facet::facet

From cppreference.com
< cpp‎ | locale‎ | locale‎ | facet

Defined in header `<locale>` |  |
explicit facet( std::size_t refs = 0 ); | (1) |
facet(const facet&) = delete; | (2) |

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.

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/locale/locale/facet/facet&oldid=50028"