17 copy(v.begin(), v.end(), ostream_iterator<T, char>(s,
" "));
42 cout << (dd < a) << endl;
43 cout << (dd == a) << endl;
44 cout << (dd > a) << endl;
46 vector<Komplex<float>> vv = { {3.0F, -1.0F}, {3.0F, -3.0F}, {1.2F, -4.F}, {4.3F, -1.F} };
47 cout <<
"vv : " << vv << endl;
48 sort(vv.begin(), vv.end());
49 cout <<
"vv : " << vv << endl;
52 cout <<
"vv : " << vv << endl;
55 sort(vv.begin(), vv.end(),
56 [] (
auto const &aa,
auto const &bb) ->
bool
57 { return abs(aa) < abs(bb); }
59 cout <<
"vv: abs : " << vv << endl;
62 auto it = find(vv.begin(), vv.end(),
Komplex<float>(1.22F, -4.0F) );
63 if (it != vv.end()) {cout <<
" found " << *it << endl;}
69 #if __cplusplus >= 202002L
70 cout <<
" C++20 support" << endl;
72 cout <<
" C++ version: " << __cplusplus << endl;
ostream & operator<<(ostream &s, const vector< T > &v)
bool islargerequal(T a, T b)