Illustrates swap (), resize (), capacity () and max_size () member functions of the vector container. It also illustrates the difference between size () and capacity () member functions. The difference between size () and capacity () function is illustrated in the following figure. |