std::vector allocates a memory on heap and store all its elements in contiguous memory location. But what if memory it allocated initially is completely filled? For example, let’s create a
std::vector allocates a memory on heap and store all its elements in contiguous memory location. But what if memory it allocated initially is completely filled? For example, let’s create a