stack.h 300 B

123456789101112131415161718
  1. #pragma once
  2. #include "fwd.h"
  3. #include "deque.h"
  4. #include <stack>
  5. template <class T, class S>
  6. class TStack: public std::stack<T, S> {
  7. using TBase = std::stack<T, S>;
  8. public:
  9. using TBase::TBase;
  10. inline explicit operator bool() const noexcept {
  11. return !this->empty();
  12. }
  13. };