|
|
|
|
|
by quietbritishjim
950 days ago
|
|
You're arguing that there aren't STL methods for doing inefficient things. But the parent took that as a given. Their comment translates as, "why doesn't the STL allow efficient removal at the front of a vector" (which would be possible in principle, e.g. python bytearray is similar but supports it). Part of the answer is that it would need an extra internal data member. BTW the pop on std::stack refers to the back so doesn't help with pop_front (and vector already supports pop_back). |
|