| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | C++ implementation consi |
Hey Jonathan!
MTJ>>
>> This gives me the problem that I cannot apply a given sort
>> method to the ISortedSet at runtime.
MTJ>>
> This is only a tentative suggestion, but you may try deriving your own
> sorted set class from ISortedSet that takes a parameter indicating the
> sort method, and that applies that parameter to its contained elements
> immediately before comparing them.
This seems to be impossible in the template collection classes... I haven't
found any ways to pass either a compare function, nor a parameter for the
sort method... The == and < operators must be overloaded in the class
you give as a parameter to the template.
Thanks for your answer - and a gr8 new year!
Yours,
Morten Toftgaard Jensen
*OS2:81:445/12.77*Fido:2:236/100.77*Nw42:2:238/42.8*Internet:psy{at}cybernet.dk*
---
* Origin: Faith? - Just another word for not thinking! (2:236/100.77)SEEN-BY: 270/101 620/243 711/401 409 410 413 430 808 809 934 955 712/407 515 SEEN-BY: 712/517 628 713/888 800/1 7877/2809 @PATH: 236/100 235/47 236/9 235/50 240/5500 24/24 396/1 270/101 712/515 @PATH: 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.