Vectors in classes[quote][code] Foo(int size)
Vectors in classesYou have [i]magic constants[/i] and due to them a clear error:
[code]vector<int>v( [b]8[/b] );
Vectors in classesThe shown code fragments look similar to:
int answer = 42;
Range based for loop in cppC++20 adds range library.
Example in: https://www.modernescpp.com/index.php/c-20-pythonic-with-the-r...
speed of vector filling: Matlab vs C++How does C++ Standard Library algorithm 'iota' run in your system?
[code]std::vector<int> myvector( ...
This user does not accept Private Messages