Message from C, C++ discussions

January 2020

— Deep


Shallow copy is memcopy, deep copy respects things like dynamic memory holding, that is, if a filed is a dynamic array, with deep copy new memory will be allocated and data copied from old

— For vector "pointers are null" is moved-from state

— Hello

— Hi

— Hello

— I have a vector of vectors and can I apply std::transform in parallel at the outer loop?

— There is a way?

— Std::transform(std::execution::par_unseq, begin, end, newbegin, myop)

— If your compiler supports the parallel STL, definitely this is the way

— Begin would be the begin of std::vector<std::vector<double>> for example

— Yes it supports, but it works with std::vector<std::vector<double>>?