07-09-2009 02:28 PM
I am using the class CNiReal64Vector and need an optimized way to copy the contents of a std vector into a CniVector, and vice versa.
I am using a non-Ni library in my application and can't use Ni types throughout. Can someone point me in the right direction?
07-15-2009 04:00 PM
07-16-2009 08:48 AM
Just to add a little more information to Mark's post, the following line of code is all that is necessary to copy elements of one vector to another:
This is because the elements of both vectors are all stored contiguously in memory, and dereferencing the first item in the collection gets you the address of the first element.
NickB
National Instruments
07-16-2009 01:21 PM