tmp/tmpzkpqhu9q/{from.md → to.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
##### Class `locale::id` <a id="locale.id">[[locale.id]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
class locale::id {
|
| 6 |
public:
|
|
@@ -13,11 +13,11 @@ namespace std {
|
|
| 13 |
|
| 14 |
The class `locale::id` provides identification of a locale facet
|
| 15 |
interface, used as an index for lookup and to encapsulate
|
| 16 |
initialization.
|
| 17 |
|
| 18 |
-
[*Note
|
| 19 |
static constructors are running, their initialization cannot depend on
|
| 20 |
programmed static initialization. One initialization strategy is for
|
| 21 |
`locale` to initialize each facet’s `id` member the first time an
|
| 22 |
instance of the facet is installed into a locale. This depends only on
|
| 23 |
static storage being zero before constructors run
|
|
|
|
| 1 |
+
###### Class `locale::id` <a id="locale.id">[[locale.id]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
class locale::id {
|
| 6 |
public:
|
|
|
|
| 13 |
|
| 14 |
The class `locale::id` provides identification of a locale facet
|
| 15 |
interface, used as an index for lookup and to encapsulate
|
| 16 |
initialization.
|
| 17 |
|
| 18 |
+
[*Note 2*: Because facets are used by iostreams, potentially while
|
| 19 |
static constructors are running, their initialization cannot depend on
|
| 20 |
programmed static initialization. One initialization strategy is for
|
| 21 |
`locale` to initialize each facet’s `id` member the first time an
|
| 22 |
instance of the facet is installed into a locale. This depends only on
|
| 23 |
static storage being zero before constructors run
|