Click here to Skip to main content
15,900,616 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: A stranage problem about stl vector. Pin
Stuart Dootson8-Dec-06 0:37
professionalStuart Dootson8-Dec-06 0:37 
Questionhelp me! I don't obtain the point of IHTMLElement through IHTMLDOMNode! why? [modified] Pin
guti_milan7-Dec-06 16:06
guti_milan7-Dec-06 16:06 
QuestionWeb deployment Pin
Polity4h6-Dec-06 10:53
Polity4h6-Dec-06 10:53 
AnswerRe: Web deployment Pin
hanmengguo7-Dec-06 15:12
hanmengguo7-Dec-06 15:12 
GeneralRe: Web deployment Pin
Polity4h8-Dec-06 3:26
Polity4h8-Dec-06 3:26 
QuestionHelp, How to make a Window to behave like a dialog without using dialog resource? Pin
Skywalker20084-Dec-06 3:43
Skywalker20084-Dec-06 3:43 
AnswerRe: Help, How to make a Window to behave like a dialog without using dialog resource? Pin
Alain Rist5-Dec-06 16:53
Alain Rist5-Dec-06 16:53 
QuestionSTL list and sort Pin
neilsolent1-Dec-06 8:18
neilsolent1-Dec-06 8:18 
Gurus,

If I have an STL list (doesn't matter what of) and I sort it, how can I add one element to the list, whilst maintaining the sort order?

All I can think of to achieve this is to either: (1) add the new element to one end, and run sort() again, or (2) iterate through the entire list, checking the sort predicate against each element. Neither of these seem particulalrly appealing.

Does anyone know the most processor efficient way of doing this please ?

thanks,

Neil.


cheers,
Neil

AnswerRe: STL list and sort Pin
led mike1-Dec-06 8:36
led mike1-Dec-06 8:36 
GeneralRe: STL list and sort Pin
neilsolent1-Dec-06 9:57
neilsolent1-Dec-06 9:57 
GeneralRe: STL list and sort Pin
Stuart Dootson2-Dec-06 14:10
professionalStuart Dootson2-Dec-06 14:10 
GeneralRe: STL list and sort Pin
Zac Howland5-Dec-06 9:36
Zac Howland5-Dec-06 9:36 
AnswerRe: STL list and sort Pin
Sceptic Mole1-Dec-06 8:42
Sceptic Mole1-Dec-06 8:42 
GeneralRe: STL list and sort Pin
neilsolent1-Dec-06 9:58
neilsolent1-Dec-06 9:58 
GeneralRe: STL list and sort Pin
Stuart Dootson2-Dec-06 14:08
professionalStuart Dootson2-Dec-06 14:08 
GeneralRe: STL list and sort Pin
Sceptic Mole3-Dec-06 0:45
Sceptic Mole3-Dec-06 0:45 
QuestionWait for Local server intialization Pin
User 21559729-Nov-06 0:21
User 21559729-Nov-06 0:21 
AnswerRe: Wait for Local server intialization Pin
Roger Stoltz29-Nov-06 0:50
Roger Stoltz29-Nov-06 0:50 
GeneralRe: Wait for Local server intialization Pin
User 21559729-Nov-06 1:56
User 21559729-Nov-06 1:56 
GeneralRe: Wait for Local server intialization Pin
User 21559729-Nov-06 4:55
User 21559729-Nov-06 4:55 
GeneralRe: Wait for Local server intialization Pin
Roger Stoltz29-Nov-06 6:10
Roger Stoltz29-Nov-06 6:10 
GeneralRe: Wait for Local server intialization Pin
User 21559729-Nov-06 23:29
User 21559729-Nov-06 23:29 
GeneralRe: Wait for Local server intialization Pin
Roger Stoltz30-Nov-06 0:19
Roger Stoltz30-Nov-06 0:19 
GeneralRe: Wait for Local server intialization Pin
User 21559730-Nov-06 4:13
User 21559730-Nov-06 4:13 
QuestionWTL Pin
Anilkumar K V26-Nov-06 23:01
Anilkumar K V26-Nov-06 23:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.