Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. template <typename ... Args>
  2. void ProcessDependencies()
  3. {}
  4.  
  5. template <typename T, typename ... Rest>
  6. void ProcessDependencies()
  7. {
  8.     ProcessDependency<T>();
  9.     ProcessDependencies<Rest...>();
  10. }
  11.  
  12. template <typename T, typename ... Args>
  13. class Dependencies
  14. {
  15. public:
  16.     Dependencies()
  17.     {
  18.         ProcessDependencies<T, Args...>();
  19.     }
  20. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement