What are template-template parameters, and how do parameter matching and defaults affect accepted templates?
Show answer and explanation
A template-template parameter accepts a class or alias template as an argument so an outer template can choose a family of types rather than one concrete type. The argument's template parameters must be compatible in kind and shape with the receiving declaration; parameter packs make the receiver more flexible, while defaults on the argument template can make omitted inner arguments valid. These rules have evolved across language versions, so portable interfaces should request only the parameter structure they actually need and use an adapter alias or concept when matching would otherwise be brittle.
A template-template parameter accepts a class or alias template as an argument so an outer template can choose a family of types rather than one concrete type. The argument's template parameters must be compatible in kind and shape with the receiving declaration; parameter packs make the receiver more flexible, while defaults on the argument template can make omitted inner arguments valid. These rules have evolved across language versions, so portable interfaces should request only the parameter structure they actually need and use an adapter alias or concept when matching would otherwise be brittle.
Connect the conclusion directly to the type, lifetime, ownership, overload-resolution rule, or library contract present in the question. State implementation dependence or a violated precondition explicitly instead of merely guessing output.