About 71 results
Open links in new tab
  1. std::stack - cppreference.com

    The std::stack class is a container adaptor that gives the programmer the functionality of a stack - specifically, a LIFO (last-in, first …

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

    7-12) These constructors participate in overload resolution only if std::uses_allocator<Container, Alloc>::value is true, that is, if the …

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

    #include <compare> #include <initializer_list> namespace std { // class template stack template<class T, class Container = …

  4. std::stack<T,Container>::top - cppreference.com

    Returns reference to the top element in the stack. This is the most recently pushed element. This element will be removed on a call …

  5. std::stack<T,Container>::~stack - cppreference.com

    Destroys the stack. The destructors of the elements are called (in unspecified order) and the dynamically allocated storage (if any) is …

  6. std::stack<T,Container>::push - cppreference.com

    Complexity Equal to the complexity of Container::push_back. Example This program implements the BrainHack DSL, when the use …

  7. std::stack<T,Container>::pop - cppreference.com

    Removes the top element from the stack. Effectively calls c.pop_back(). Complexity Equal to the complexity of Container::pop_back. …

  8. std::stack<T,Container>::emplace - cppreference.com

    Complexity Identical to the complexity of Container::emplace_back. Example

  9. std::stack<T,Container>::operator= - cppreference.com

    2) Move assignment operator. Replaces the contents with those of other using move semantics. Effectively calls c = std::move(other.c);.

  10. std::stack<T,Container>::push_range - cppreference.com

    Inserts a copy of each element of rg in stack, as if by: c.append_range(std::forward<R>(rg)) if that is a valid expression (i.e. the …