이 레슨은 당분간 영어로 제공돼요.
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.