Re: [PATCH] Fix typo in std::stack (PR libstdc++/81599)
On Mon, Jul 31, 2017 at 04:37:19PM +0300, Ville Voutilainen wrote: > On 31 July 2017 at 16:25, Marek Polacekwrote: > > The documentation of std::stack says that the underlying container must > > support > > pop_front, but that is wrong, it meant to say pop_back, so this patch fixes > > that. > > Indeed, the documentation has a copy-pasto originating from bits/stl_queue.h. > > > Ok for trunk? > > > I can't approve the patch, but I suggest committing it as obvious. Yea, will do. Thanks, Marek
Re: [PATCH] Fix typo in std::stack (PR libstdc++/81599)
On 31 July 2017 at 16:25, Marek Polacekwrote: > The documentation of std::stack says that the underlying container must > support > pop_front, but that is wrong, it meant to say pop_back, so this patch fixes > that. Indeed, the documentation has a copy-pasto originating from bits/stl_queue.h. > Ok for trunk? I can't approve the patch, but I suggest committing it as obvious.
[PATCH] Fix typo in std::stack (PR libstdc++/81599)
The documentation of std::stack says that the underlying container must support pop_front, but that is wrong, it meant to say pop_back, so this patch fixes that. Ok for trunk? 2017-07-31 Marek PolacekPR libstdc++/81599 * include/bits/stl_stack.h: Fix typo. diff --git gcc/include/bits/stl_stack.h gcc/include/bits/stl_stack.h index ac59ec715cf..5f2b4ab4486 100644 --- gcc/include/bits/stl_stack.h +++ gcc/include/bits/stl_stack.h @@ -86,7 +86,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION * * The second template parameter defines the type of the underlying * sequence/container. It defaults to std::deque, but it can be - * any type that supports @c back, @c push_back, and @c pop_front, + * any type that supports @c back, @c push_back, and @c pop_back, * such as std::list, std::vector, or an appropriate user-defined * type. * Marek