Template algorithm for std::vector and std::string
Hello! For example, I have two functions:
Quote:
|
Quote:
Quote:
That is the usual way that templates work in C++. Code:
template <class Anything> |
Quote:
The problem can, of course, be resolved trivially using a macro, but the OP requested a template solution. |
Quote:
|
Quote:
|
All times are GMT -5. The time now is 06:16 PM. |