このレッスンは、現在英語のみです。
One recipe, many types
You wrote bigger(int, int). Now you need the same thing for double and for std::string. Copying the function again and again is a trap. A template lets the compiler write the versions for you.
このレッスンは、現在英語のみです。
You wrote bigger(int, int). Now you need the same thing for double and for std::string. Copying the function again and again is a trap. A template lets the compiler write the versions for you.