|
-
April 28th, 2014, 11:43 PM
#11
Re: passing an array as a pointer to a function
 Originally Posted by OReubens
This is slightly off.
it'll be as efficient as old-style ALLOCATED C style array.
No.
There's no difference in what "memory" these data structures (C-style array, std::array and std::vector) can be allocated in, be it static, automatic, free store or something else.
And they can all be accessed in the same way for example via a pointer to the first element with the same efficiency.
Last edited by zizz; April 29th, 2014 at 12:00 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|