prefill a std::vector at initialization?

Posted by user146780 on Stack Overflow See other posts from Stack Overflow or by user146780
Published on 2010-06-08T15:12:30Z Indexed on 2010/06/08 15:22 UTC
Read the original article Hit count: 108

Filed under:

I want to create a vector of vector of a vector of double and want it to already have (32,32,16) elements, without manually pushing all of these back. Is there a way to do it during initialization? (I dont care what value gets pushed)

Thanks

I want a 3 dimensional array, first dimension has 32, second dimension has 32 and third dimension has 16 elements

© Stack Overflow or respective owner

Related posts about c++