Files
concurrency-in-action/source/listing_3.3.cpp
2018-10-18 00:40:34 -05:00

30 lines
626 B
C++

#include <deque>
template <typename T, typename Container = std::deque<T>>
class stack {
public:
explicit stack(const Container&);
explicit stack(Container&& = Container());
template <class Alloc>
explicit stack(const Alloc&);
template <class Alloc>
stack(const Container&, const Alloc&);
template <class Alloc>
stack(Container&&, const Alloc&);
template <class Alloc>
stack(stack&&, const Alloc&);
bool empty() const;
size_t size() const;
T& top();
T const& top() const;
void push(T const&);
void push(T&&);
void pop();
void swap(stack&&);
};
int
main()
{
}