Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ template

template <class T>
class mypair {
    T values [2];
  public:
    mypair (T first, T second)
    {
      values[0]=first; values[1]=second;
    }
};
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #template
ADD COMMENT
Topic
Name
7+9 =