How to cheaply assign C-style array to std::vector?
The current std::vector doesn’t provide any capability or interface to take ownership of previously allocated storage. Presumably it would be too easy to pass a stack address in by accident, allowing more problems than it solved. If you want to avoid copying into a vector, you’ll either need to use vectors through your entire call … Read more