About 9,060 results
Open links in new tab
  1. std::stack - cppreference.net

    Apr 26, 2025 · The std::stack class is a container adaptor that gives the programmer the functionality of a stack - specifically, a LIFO (last-in, first-out) data structure. The class …

  2. std::stack<T,Container>::~stack - cppreference.net

    Nov 20, 2021 · Destructs the stack . The destructors of the elements are called and the used storage is deallocated. Complexity Linear in the size of * this . Notes If the elements are …

  3. Standard library header <stack> - cppreference.net

    Class template std::stack namespace std { template<class T, class Container = deque <T>> class stack

  4. Containers library - cppreference.net

    Feb 22, 2025 · The Containers library is a generic collection of class templates and algorithms that allow programmers to easily implement common data structures like queues, lists and …

  5. std::swap (std::stack) - cppreference.net

    Nov 20, 2021 · Specializes the std::swap algorithm for std::stack . Swaps the contents of lhs and rhs . Calls lhs. swap ( rhs ) . This overload participates in overload resolution only if std:: …

  6. cppreference.net

    Jun 4, 2023 · <regex> (since C++11) <scoped_allocator> (since C++11) <set> <shared_mutex> (since C++11) <sstream> <stack> <stdexcept> <streambuf> <string> <strstream> …

  7. std::stack<T,Container>::push - cppreference.net

    Sep 15, 2020 · Return value (none) Complexity Equal to the complexity of Container :: push_back . Example This program implements the BrainHack DSL , when the use of std::stack is an …

  8. std::stack<T,Container>::top - cppreference.net

    Returns reference to the top element in the stack. This is the most recently pushed element. This element will be removed on a call to pop () . Equivalent to: c . back ( ) .

  9. std::stack<T,Container>::pop - cppreference.net

    Nov 15, 2021 · Removes the top element from the stack. Effectively calls c. pop_back ( ) .

  10. std::basic_stacktrace - cppreference.net

    Jan 1, 2024 · stacktrace_entry objects on the stack or in some other place, where appropriate. The sequence of std::stacktrace_entry objects owned by a std::basic_stacktrace is immutable, …