How do I convert a std::vector to a double array[]?
std::vector
double array[]
vector thevector; //... double *thearray = &thevector[0];
This is guaranteed to work by the standard, however there are some caveats: in particular take care to only use thearray while thevector is in scope.
thearray
thevector