Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ template function

template <class T>
void swap(T & lhs, T & rhs)
{
 T tmp = lhs;
 lhs = rhs;
 rhs = tmp;
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #template #function
ADD COMMENT
Topic
Name
2+1 =