Parallelism Encapsulation in C++