xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
internal
__natural_formatter.hpp
Go to the documentation of this file.
1
3
#pragma once
5
#if !defined(__XTD_CORE_INTERNAL__)
6
#error "Do not include this file: Internal use only"
7
#endif
9
10
#include <iomanip>
11
#include <locale>
12
#include <string>
13
#include <sstream>
14
16
template
<
typename
char
_t>
17
[[nodiscard]]
inline
auto
__natural_formatter(
long
double
value,
int
precision,
const
std::locale& loc) -> std::basic_string<char_t> {
18
std::basic_stringstream<char_t> ss;
19
ss.imbue(loc);
20
ss << std::fixed << std::setprecision(precision) <<
value
;
21
return
ss.str();
22
}
xtd::expressions::operator_precedence::value
@ value
Represnets the constant operator precedence (42).
Definition
operator_precedence.hpp:30
Generated on
for xtd by
Gammasoft
. All rights reserved.