[Cs3] specialized function template for friends

Mikhail Nesterenko mnestere at kent.edu
Thu Sep 11 12:56:50 EDT 2025


> Good Evening Dr. Nesterenko,
> 
> Hope your night is going well. Just a quick question in regard to
> lab 3. By specialized function template for a friend, does this mean
> just forwardly declaring the class and function to avoid allowing
> the friend access to all instantiations of the class whose private
> members it can access? Or am I referring to a different construct?
> We studied "specific" function templates, so is "specialized" just
> another way of saying this? Sorry for the late email, I just wanted
> to clear things up before I implement equal() for my container.
>

Sorry for the confusion. Yes, the lab assignment is to use the
specific friend function described here:


http://antares.cs.kent.edu/~mikhail/classes/cs3/Examples/TemplateIntro/friendSpecific.cpp

Thank you,
--
Mikhail



More information about the cs3 mailing list