Home > Back-end >  C template?
C template?

Time:11-30

C + + support template to solve the same function to realize the same algorithm for different data types,

So if I use template creates a simple exchange of function, the main function is called twice, respectively is int and double types, that is the operation of the compiled file, there are two swap function blocks of memory, or only one, only one is when run through a special way to call?

CodePudding user response:

There are two,,,,,,,
  • Related