Jump to content

[SOLVED] Difference between std::vector<foo> and Unigine::Vector<foo> ?


photo

Recommended Posts

Posted

The documentation is a bit light on the subject. What is the difference between a Unigine vector and a STL vector?

Posted

Hi Angus!

Unigine::Vector offers you the following advantages:

  1. in most cases it's faster;
  2. memory allocation is performed using Unigine's allocator;
  3. supports stack memory allocation (VectorStack<>);
  4. does not depend on std, so it's binary compatible with other compilers;
  5. offers a set of useful methods, that are missing in std::vector. In many cases methods appendFast(), removeFast(), allocate(), etc. ensure better data processing performance.

We will surely update the documentation by the next release, sorry for the inconvenience caused.

Thanks!

  • silent changed the title to [SOLVED] Difference between std::vector<foo> and Unigine::Vector<foo> ?
×
×
  • Create New...