Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Math Module User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

3.8 Vector Copies

Now let's deal with the problem opposite to Section 3.7. In other words, you have a view of another object's data, but you really want a unique copy. In this case, you can use the copy function. Here is a common situation within functions:

In this example, myCopy and v each refer to their own data, and no aliasing takes place.



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.