1 | // Licensed to the .NET Foundation under one or more agreements. |
2 | // The .NET Foundation licenses this file to you under the MIT license. |
3 | // See the LICENSE file in the project root for more information. |
4 | |
5 | #ifndef __GENERIC_LIST_H__ |
6 | #define __GENERIC_LIST_H__ |
7 | |
8 | // Simple parameterized linked list |
9 | // with some good ctors |
10 | template <typename _T> |
11 | struct list |
12 | { |
13 | _T arg; |
14 | list<_T> *next; |
15 | |
16 | list(_T t, list<_T> *n) |
17 | { |
18 | arg = t, next = n; |
19 | } |
20 | list() : arg(), next(NULL) |
21 | { |
22 | } |
23 | }; |
24 | |
25 | #endif // __GENERIC_LIST_H__ |
26 | |