-
-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathlist
More file actions
58 lines (55 loc) · 1.57 KB
/
Copy pathlist
File metadata and controls
58 lines (55 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//==============================================================================
//
// list
//
#ifndef LIST_INCLUDED
#define LIST_INCLUDED
#include "cstddef"
#include "iterator"
namespace std
{
template<typename T> class list
{
public:
typedef iterator_t<T> iterator;
typedef iterator_t<const T> const_iterator;
list();
list(size_t count, const T& value);
list(const list& that);
~list();
iterator begin();
iterator end();
iterator rbegin();
iterator rend();
const_iterator begin() const;
const_iterator cbegin() const;
const_iterator cend() const;
const_iterator crbegin() const;
const_iterator crend() const;
const_iterator end() const;
const_iterator rbegin() const;
const_iterator rend() const;
void clear();
bool empty() const;
void resize(size_t count);
void resize(size_t count, const T& value);
size_t size() const;
void swap(list& that);
const T& back() const;
T& back();
const T& front() const;
T& front();
iterator erase(const_iterator where);
iterator erase(const_iterator first, const_iterator last);
iterator insert(iterator where, const T& value);
iterator insert(const_iterator where, const T& value);
iterator insert(const_iterator where, size_t count, const T& value);
void push_back(const T& value);
void push_front(const T& value);
void pop_back();
void pop_front();
void sort();
void sort(bool (*sorted)(T& first, T& second));
};
}
#endif