aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/list.h
blob: 9aeb7b8a7b705af0288328f477b6183e9fc9bd0f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
 
#include "fwd.h"

#include <util/memory/alloc.h> 
 
#include <initializer_list>
#include <list> 
#include <memory>
#include <utility>
 
template <class T, class A>
class TList: public std::list<T, TReboundAllocator<A, T>> {
    using TBase = std::list<T, TReboundAllocator<A, T>>;
 
public:
    using TBase::TBase;
 
    inline explicit operator bool() const noexcept { 
        return !this->empty(); 
    } 
};