https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81599

            Bug ID: 81599
           Summary: Error in documentation of std::stack
           Product: gcc
           Version: 7.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chtz at informatik dot uni-bremen.de
  Target Milestone: ---

I just noticed an error in the documentation of std::stack.

It is claimed here: 
https://gcc.gnu.org/onlinedocs/gcc-7.1.0/libstdc++/api/a01646_source.html#l00087

that the underlying container must support 
   "@c back, @c push_back, and @c pop_front,"
however, it must of course provide pop_back (instead of pop_front).
The error seems to have existed for quite a while, e.g., in version 4.6 is
exactly the same paragraph:
https://gcc.gnu.org/onlinedocs/gcc-4.6.4/libstdc++/api/a01078_source.html#l00083

Reply via email to