diff options
Diffstat (limited to 'source/core/slang-array.h')
| -rw-r--r-- | source/core/slang-array.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source/core/slang-array.h b/source/core/slang-array.h index 2647e163f..8d22e1848 100644 --- a/source/core/slang-array.h +++ b/source/core/slang-array.h @@ -125,6 +125,23 @@ namespace Slang insertArray(rs, args...); return rs; } + + + template<typename TList> + void addToList(TList&) + { + } + template<typename TList, typename T> + void addToList(TList& list, T node) + { + list.add(node); + } + template<typename TList, typename T, typename ... TArgs> + void addToList(TList& list, T node, TArgs ... args) + { + list.add(node); + addToList(list, args...); + } } #endif |
