An object becomes an STL container only if it fulfills all the container requirements laid down in section 23.1 of the Standard for C++. Among the requirements is that if
c is a container of objects of type
T and
c supports operator[], the following must compile: