78{
81
83
84 try {
85
87
89
91 }
92 catch(const exception &error) {
94 }
95
96 for (int value = 1; value < 1000000000; value *= 10) {
98 }
99
100 for (int value = 1; value < 1000000000; value *= 10) {
102 }
103
104 for (int value = 1; value < 1000000000; value *= 10) {
106 }
107
108 for (int value = 1; value < 1000000000; value *= 10) {
110 }
111
112 for (double value = 0.123456; value < 100000; value *= 10) {
114 }
115
116
117 {
118 const double c = 12.34;
119
120 const A a(c);
121 const B b(c);
122
124
129
132
137 }
138 {
139 C c;
140
144 }
145 {
146 ostringstream os[2];
147
148 const int i = 123456;
149
150 os[0] <<
setw(12) << left << i;
151 os[1] <<
LEFT(12) << i;
152
153 ASSERT(os[0].str() == os[1].str(),
"<" << os[0].str() <<
"> == <" << os[1].str() <<
">");
154 }
155 {
156 ostringstream os[2];
157
158 const int i = 123456;
159
160 os[0] <<
setw(12) << right << i;
161 os[1] <<
RIGHT(12) << i;
162
163 ASSERT(os[0].str() == os[1].str(),
"<" << os[0].str() <<
"> == <" << os[1].str() <<
">");
164 }
165 {
166 ostringstream os[2];
167
168 const int i = 123456;
169
171 os[1] <<
FILL(12,
'0') << i;
172
173 ASSERT(os[0].str() == os[1].str(),
"<" << os[0].str() <<
"> == <" << os[1].str() <<
">");
174 }
175 {
176 ostringstream os[2];
177
178 const double x = 123.456;
179
181 os[1] <<
FIXED(12,5) <<
x;
182
183 ASSERT(os[0].str() == os[1].str(),
"<" << os[0].str() <<
"> == <" << os[1].str() <<
">");
184 }
185 {
186 ostringstream os[2];
187
188 const double x = 123.456;
189
192
193 ASSERT(os[0].str() == os[1].str(),
"<" << os[0].str() <<
"> == <" << os[1].str() <<
">");
194 }
195
196 {
198
199 cout <<
LAMBDA([v = V](ostream& out) {
for (
const auto& i : v) { out <<
" " << i; } }) <<
endl;
200 }
201
202 return 0;
203}
std::ostream & mediumprint(std::ostream &out)
Set medium printing.
std::ostream & longprint(std::ostream &out)
Set long printing.
std::ostream & shortprint(std::ostream &out)
Set short printing.
#define ASSERT(A,...)
Assert macro.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for alignment of data.
Auxiliary data structure for sequence of same character.
Auxiliary data structure for floating point format specification.
Auxiliary data structure to convert (lambda) function to printable object.
Auxiliary data structure for alignment of data.
Auxiliary data structure for alignment of data.
Auxiliary data structure for floating point format specification.