­
2013-05 - Open CASCADE notes

Simple memory allocations

17:20 / BY Roman Lygin
The great convenience of standard collections for a developer is that they free him/her from extra efforts on managing underlying memory allocations. It’s so much convenient to just write {     std::vector v(n);     for (int i = 0; i < n; ++i)         v[i] = i; } or likewise for OCC fixed size array: {     TColStd_Array1OfReal a (0, n-1);     for...

Continue Reading