Difference between revisions of "cpp/locale/localeconv"
From cppreference.com
(+) |
(→Example: fmt) |
||
Line 27: | Line 27: | ||
#include <clocale> | #include <clocale> | ||
#include <iostream> | #include <iostream> | ||
+ | |||
int main() | int main() | ||
{ | { |
Revision as of 04:09, 8 February 2012
Template:cpp/locale/sidebar Template:ddcl list begin <tr class="t-dsc-header">
<td>Defined in header
</td>
<clocale>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<td class="t-dcl-nopad">std::lconv* localeconv();
</td>
<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end
The localeconv
function obtains a pointer to a static object of type Template:cpp, which represents numeric and monetary formatting rules of the current C locale.
Contents |
Parameters
(none)
Return value
pointer to the current Template:cpp object.
Notes
Modifying the object references through the returned pointer is undefined behavior.
std::localeconv
modifies a static object, calling it from different threads without synchronization is undefined behavior.