- Go to the root directory of the project
mkdir build
cd build
cmake ..
make
Project has been compiled with Apple LLVM version 7.3.0 (clang-703.0.29)
Example of Member function pointers.
Example of a vector with unique pointers to a class. Uses the std::make_unique
from the new C++14 standard. An alternative that works with C++11 is also shown.
Some magic using C++ Member function pointers with templates and an interface class.
Tests using std::future and std::async to calculate average of a vector. The amount of parallel threads is changed by a variable and the results have been plotted. Note that this test was performed on a quad core machine (2,5 GHz Intel Core i5).