CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 30

Threaded View

  1. #11
    Join Date
    Aug 2013
    Posts
    55

    Re: passing an array as a pointer to a function

    Quote Originally Posted by OReubens View Post
    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
  •  





Click Here to Expand Forum to Full Width

Featured