about __STL_FUNCTION_TMPL_PARTIAL_ORDER

H

hpsoar

what does "partial ordering of function templates" mean? and what's
the difference between this and "partial specialization of function
templates" ? I'd appreciate it very much if any one can tell me
 
B

Bo Persson

hpsoar said:
what does "partial ordering of function templates" mean? and what's
the difference between this and "partial specialization of function
templates" ? I'd appreciate it very much if any one can tell me

The partial ordering is a method of selecting one function out of a
set of, possibly partially specialized, function templates. Which one
is the closest match?


Bo Persson
 
S

SG

Bo said:
The partial ordering is a method of selecting one function out of a
set of, possibly partially specialized, function templates. Which one
is the closest match?

Hmmm... I thought partial specialization of function templates isn't
possible. ;-)

Cheers!
SG
 
B

Bo Persson

SG said:
Hmmm... I thought partial specialization of function templates isn't
possible. ;-)

True, they become overloads.

A function template can be *more* specialized that another. But it
cannot be partially specialized, it just looks that way. :)


Bo Persson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,431
Latest member
ElyseG3173

Latest Threads

Top