templates - Extract the generic type of another generic type in C++ -
I have a square fu which uses two different common types, a My other common type is How to do this I do not have this syntax. I have tried: @Jakim Pielborg In the comment, I Came along, who gave me the And now _Type And other
_Comparator is
_Type to
std :: vector ,
std :: list , or
std :: string is known as , so it will be of one type within it:
T within
vector and
list ; Within the
Four
string .
_Comparator , which is an optional template parameter, by which it specifies its lesser than the user function, factor, or lambda function. If no argument is provided in the form of a second argument parameter then it should be
std :: less
M should be
_Type .
template & lt; Typename _Type & lt; T & gt;, typename _Comparator = less & lt; T & gt; & Gt;
_Type :
template
std :: less compares the right type without complaining.
Comments
Post a Comment