We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ac04c5 commit 1dc53e4Copy full SHA for 1dc53e4
features/cellular/framework/common/CellularList.h
@@ -86,6 +86,27 @@ template <class T> class CellularList {
86
delete current;
87
}
88
89
+ int count()
90
+ {
91
+ T *item = _head;
92
+ int n = 0;
93
+ while (item) {
94
+ item = item->next;
95
+ n++;
96
+ }
97
+ return n;
98
99
+
100
+ T *dequeue()
101
102
+ if (!_head) {
103
+ return NULL;
104
105
+ T *temp = _head;
106
+ _head = _head->next;
107
+ return temp;
108
109
110
void delete_all()
111
{
112
T *temp = _head;
0 commit comments