Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

template c++

template <class identifier> function_declaration;
template <typename identifier> function_declaration;

//Example:
template <class Type> 
void Swap( Type &x, Type &y)
{
    Type Temp = x;
    x = y; 
    y = Temp;
}
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #template
ADD COMMENT
Topic
Name
6+1 =