devxlogo

Pass Template Parameters by Reference

Pass Template Parameters by Reference

In the following declaration of the template min, the template parameter T is passed by value:

 template  bool equal(T first, T sec){//

devx-admin

Share the Post: