Currently I do the following:
// float *c_array = new float[1024]; void Foo::foo(float *c_array, size_t c_array_size) { //std::vector cpp_arr
The only way to do it would be to create a custom allocator.
Write an allocator class that you can initialise with your array.
Instantiate the vector with the allocator as an argument.