Partial specialisation exists only for class templates; for function templates the same effect is obtained by adding overloads that the compiler ranks through partial ordering of candidates. Class templates do allow partial specialisation, and a function can dispatch to a specialised class to emulate it. Overloading is usually clearer and avoids surprises when explicit specialisation meets overload resolution.