Lines Matching refs:os
28 std::ostream& operator<<(std::ostream& os, const SimpleStruct& v) {
29 return os << "s:" << v.bool_ << "," << v.uint_ << "," << v.float_ << "," << v.ldbl_;
46 std::ostream& operator<<(std::ostream& os, const PackedStruct& v) {
47 return os << "p:" << v.bool_ << "," << v.uint_ << "," << v.float_ << "," << v.ldbl_;
55 std::ostream& operator<<(std::ostream& os, const NestedStruct& v) {
56 return os << "n:a=" << v.a << ";b=" << v.b;
85 std::ostream& operator<<(std::ostream& os, const ComplexStruct& v) {
86 return os << "c:" << v.cflt << "," << v.cdbl;
109 std::ostream& operator<<(std::ostream& os, const StringStruct& v) {
110 os << "a='";
111 for (size_t i = 0; i < 3 && v.a[i]; i++) os << v.a[i];
112 os << "',b='";
113 for (size_t i = 0; i < 3 && v.b[i]; i++) os << v.b[i];
114 return os << "'";
117 std::ostream& operator<<(std::ostream& os, const ArrayStruct& v) {
118 os << "a={";
121 os << ',';
122 os << '{';
124 os << v.a[i][j] << ',';
125 os << v.a[i][3] << '}';
127 os << "},b={" << v.b[0] << ',' << v.b[1];
128 os << "},c={" << int(v.c[0]) << ',' << int(v.c[1]) << ',' << int(v.c[2]);
129 os << "},d={";
132 os << ',';
133 os << '{' << v.d[i][0] << ',' << v.d[i][1] << '}';
135 return os << '}';
138 std::ostream& operator<<(std::ostream& os, const EnumStruct& v) {
139 return os << "e1=" << (v.e1 == E1::A ? "A" : "B") << ",e2=" << (v.e2 == E2::X ? "X" : "Y");