Why would we use an array when we could use a built-in array? An array knows its size, so it is easy to use with standard-library algorithms, and it can be copied (using = or initialization). However, my main reason to prefer array is that it saves me from surprising nasty conversions to pointers.
Why use std::array rather than built-in array.
Share this highlighthttp://www.safaribooksonline.com/a/a-tour-of/44497/