51 a2 = 0b10000000000000,
55 d2 = 0b100000000000000,
59 g2 = 0b1000000000000000,
61 dp = 0b10000000000000000,
63 pc = 0b100000000000000000,
67 inline segments& operator +=(
segments& lhs,
segments rhs) {lhs =
static_cast<segments>(
static_cast<long long>(lhs) +
static_cast<long long>(rhs));
return lhs;}
68 inline segments& operator -=(
segments& lhs,
segments rhs) {lhs =
static_cast<segments>(
static_cast<long long>(lhs) -
static_cast<long long>(rhs));
return lhs;}
69 inline segments& operator &=(
segments& lhs,
segments rhs) {lhs =
static_cast<segments>(
static_cast<long long>(lhs) &
static_cast<long long>(rhs));
return lhs;}
70 inline segments& operator |=(
segments& lhs,
segments rhs) {lhs =
static_cast<segments>(
static_cast<long long>(lhs) |
static_cast<long long>(rhs));
return lhs;}
71 inline segments& operator ^=(
segments& lhs,
segments rhs) {lhs =
static_cast<segments>(
static_cast<long long>(lhs) ^
static_cast<long long>(rhs));
return lhs;}
78 inline std::ostream& operator<<(std::ostream& os,
segments value) {
return os <<
to_string(value, {{
segments::none,
"none"}, {
segments::a,
"a"}, {
segments::b,
"b"}, {
segments::c,
"c"}, {
segments::d,
"d"}, {
segments::e,
"e"}, {
segments::f,
"f"}, {
segments::g,
"g"}, {
segments::h,
"h"}, {
segments::i,
"i"}, {
segments::j,
"j"}, {
segments::k,
"k"}, {
segments::l,
"l"}, {
segments::m,
"m"}, {
segments::a2,
"a2"}, {
segments::d2,
"d2"}, {
segments::g2,
"g2"}, {
segments::dp,
"dp"}, {
segments::pc,
"pc"}});}
79 inline std::wostream& operator<<(std::wostream& os,
segments value) {
return os <<
to_string(value, {{
segments::none, L
"none"}, {
segments::a, L
"a"}, {
segments::b, L
"b"}, {
segments::c, L
"c"}, {
segments::d, L
"d"}, {
segments::e, L
"e"}, {
segments::f, L
"f"}, {
segments::g, L
"g"}, {
segments::h, L
"h"}, {
segments::i, L
"i"}, {
segments::j, L
"j"}, {
segments::k, L
"k"}, {
segments::l, L
"l"}, {
segments::m, L
"m"}, {
segments::a2, L
"a2"}, {
segments::d2, L
"d2"}, {
segments::g2, L
"g2"}, {
segments::dp, L
"dp"}, {
segments::pc, L
"pc"}});}
std::string to_string(const value_t &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition to_string.h:37
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17
Contains xtd::ustring class.