aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/stack.h
blob: 1b1a7b054797af35511d391e2a8877ee275b170e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once
 
#include "fwd.h"
#include "deque.h" 
 
#include <stack> 
 
template <class T, class S>
class TStack: public std::stack<T, S> {
    using TBase = std::stack<T, S>; 
 
public: 
    using TBase::TBase;
 
    inline explicit operator bool() const noexcept {
        return !this->empty();
    }
};