Search:

Type: Posts; User: rahulss

Search: Search took 0.00 seconds.

  1. Replies
    11
    Views
    1,490

    You could take the args in a STL vector. That...

    You could take the args in a STL vector. That would be the simplest solution. You can then use the member function size().

    Rahul
  2. Dereferencing begin() for an empty STL vector

    Hi:

    I would like to know if it is safe to do something like the following:

    std::vector<int> arr;
    int* arrPtr = &(*arr.begin());

    I know that it is a valid thing to do if arr is not empty. I...
Results 1 to 2 of 2