pivector doc

This commit is contained in:
Andrey
2022-04-18 18:16:26 +03:00
parent 4b32101de6
commit f01ca5e5bf
2 changed files with 92 additions and 3 deletions

View File

@@ -87,8 +87,8 @@ int main(int argc, char * argv[]) {
// piCout.writePIString(PIString::fromUTF8("test\n"));
// piCout.writePIString(PIString::fromUTF8("бюд\n"));
// piCout << "бюд\n";
PIVector<double> v{1.1, 2.5, 3.8};
PIVector<int> v2 = v.toType<int>();
piCout << v2;
PIVector<int> v{1, 2, 3, 4, 5};
int s = v.reduce<int>([](int e, int acc){return acc + e;});
piCout << s; // 15
return 0;
}