templates of functions

Posted by anotr67 on Stack Overflow See other posts from Stack Overflow or by anotr67
Published on 2010-04-27T10:11:22Z Indexed on 2010/04/27 10:13 UTC
Read the original article Hit count: 367

I'm told to create template of function , that will take 4 arguments :

  • pointer
  • reference
  • pointer to array
  • pointer to function

How to perform this task ? I was trying :

template<typename TYPE> TYPE biggest(TYPE *L, TYPE $M, TYPE *K[], TYPE *O())
{

}

but it is wrong.

© Stack Overflow or respective owner

Related posts about c++

Related posts about homework