42 using ConstIterator = typename std::deque<T>::const_iterator; |
42 using ConstIterator = typename std::deque<T>::const_iterator; |
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 (std::size_t numvalues); |
47 List (const std::deque<T>& a); |
48 List (const std::deque<T>& a); |
48 List (std::initializer_list<T>and a); |
49 List (std::initializer_list<T>&& a); |
49 |
50 |
50 inline T& append (const T& value); |
51 inline T& append (const T& value); |
51 inline Iterator begin(); |
52 inline Iterator begin(); |
52 inline ConstIterator begin() const; |
53 inline ConstIterator begin() const; |
53 inline void clear(); |
54 inline void clear(); |
99 template<typename T> |
100 template<typename T> |
100 List<T>::List (const std::deque<T>& other) : |
101 List<T>::List (const std::deque<T>& other) : |
101 _deque (other) {} |
102 _deque (other) {} |
102 |
103 |
103 template<typename T> |
104 template<typename T> |
104 List<T>::List (std::initializer_list<T>and a) : |
105 List<T>::List (std::initializer_list< T > && a) : |
105 _deque (a) {} |
106 _deque (a) {} |
|
107 |
|
108 template<typename T> |
|
109 List<T>::List (std::size_t numvalues) : |
|
110 _deque (numvalues) {} |
106 |
111 |
107 template<typename T> |
112 template<typename T> |
108 inline typename List<T>::Iterator List<T>::begin() |
113 inline typename List<T>::Iterator List<T>::begin() |
109 { |
114 { |
110 return _deque.begin(); |
115 return _deque.begin(); |