Skip to content

Instantly share code, notes, and snippets.

@DanSearle
Created September 30, 2013 15:29
Show Gist options
  • Save DanSearle/6765506 to your computer and use it in GitHub Desktop.
Save DanSearle/6765506 to your computer and use it in GitHub Desktop.
Convert a vector to a array pointer in c++
std::vector<double> v;
double* a = &v[0];
// From http://stackoverflow.com/a/2923290/1260257
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment