int x[3]; // reserve capacity 6 => x.capacity; // should throw exception, since 4 is beyond x.size(), even if within x.capacity <<< x[4] >>>;