Re: STL vector

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi marcel,

Doing a pop_back on an empty std::vector has undefined effect.

Probably a safe bet that whatever the undefined effect, it isn't a desirable
effect.

The size method can be called before the pop_back, to assure that there is
something to pop.

HTH,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux