STL-compliant container with flexible size, fixed maximum size and allocation on the stack