Advertisement
Guest User

tclass.h

a guest
Dec 14th, 2014
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.71 KB | None | 0 0
  1. #include <algorithm>
  2.  
  3. using namespace std;
  4.  
  5.  
  6. template<class Data_T,typename... Args>
  7. class tclass
  8. {
  9. public:
  10.     void example(Data_T&, Args&...);
  11.     void example(Data_T&);
  12.  
  13. private:
  14.     void intern(Data_T&, Args&...);
  15.     void intern(Data_T&);
  16.    
  17. };
  18.  
  19. template<class Data_T,typename... Args>
  20. void tclass<Data_T,Args...>::example(Data_T& data, Args&... args){
  21.  
  22.     // intern(ref(data), ref(args...));
  23.  
  24. }
  25.  
  26. template<class Data_T,typename... Args>
  27. void tclass<Data_T,Args...>::example(Data_T&){
  28.     // intern(ref(data));
  29. }
  30.  
  31. template<class Data_T,typename... Args>
  32. void tclass<Data_T,Args...>::intern(Data_T&, Args&...){
  33.  
  34. }
  35.  
  36. template<class Data_T,typename... Args>
  37. void tclass<Data_T,Args...>::intern(Data_T&){
  38.  
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement