Wrap raw data in std container like array, with runtime size
问题 Is there any std container which would be fixed size like std::array, but the size would not be compile time, but runtime? I want to pass a part of some data I have stored in std::array to std::acculumate and similar functions. I do not want to use std::vector (working on embedded platform), therefore I am looking for something in between. Assume code like this, what I want is something to be used in place of array_part : #include <array> #include <algorithm> #include <iostream> #include