Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Template specialisation » ?

Definition 4.6 University Computer Science — Year 2 · Chapitre 4 — Templates and Generic Programming

A full specialisation template <> ... f<A>(...) gives the body of a template for one particular argument list A, used instead of the general body whenever those arguments are chosen. Function templates may also be overloaded: a second template with a more specific parameter (such as T * for T), chosen when it matches better.

Lire dans le chapitre →