src/list.h

changeset 134
eca2fc0acaa2
parent 133
dbbdb870c835
child 135
8b9132fea327
equal deleted inserted replaced
133:dbbdb870c835 134:eca2fc0acaa2
43 using ReverseIterator = typename std::deque<T>::reverse_iterator; 43 using ReverseIterator = typename std::deque<T>::reverse_iterator;
44 using ConstReverseIterator = typename std::deque<T>::const_reverse_iterator; 44 using ConstReverseIterator = typename std::deque<T>::const_reverse_iterator;
45 45
46 List(); 46 List();
47 List (const std::deque<T>& a); 47 List (const std::deque<T>& a);
48 List (std::initializer_list<T>&& a); 48 List (std::initializer_list<T>and a);
49 49
50 inline T& append (const T& value); 50 inline T& append (const T& value);
51 inline Iterator begin(); 51 inline Iterator begin();
52 inline ConstIterator begin() const; 52 inline ConstIterator begin() const;
53 inline void clear(); 53 inline void clear();
99 template<typename T> 99 template<typename T>
100 List<T>::List (const std::deque<T>& other) : 100 List<T>::List (const std::deque<T>& other) :
101 _deque (other) {} 101 _deque (other) {}
102 102
103 template<typename T> 103 template<typename T>
104 List<T>::List (std::initializer_list<T>&& a) : 104 List<T>::List (std::initializer_list<T>and a) :
105 _deque (a) {} 105 _deque (a) {}
106 106
107 template<typename T> 107 template<typename T>
108 inline typename List<T>::Iterator List<T>::begin() 108 inline typename List<T>::Iterator List<T>::begin()
109 { 109 {

mercurial