Is an Array a Container?

closed account (EwCjE3v7)
(nooby question) Is an array a container? I presume yes as it holds objects but in my book it says
vector is a container type.
but it does not say array.
So....

 
  int[5] = {1,2,3,4,5) // array <- 
Last edited on
array does not satisfy Container concept, so it is not a STL container. I believe your book means that.
closed account (EwCjE3v7)
K thank you
Topic archived. No new replies allowed.