Click here to Skip to main content
15,911,482 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
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 
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 
neilsolent wrote:
f 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 ?


If you insert only one element (2) is probably faster. You can make it even faster if you know from which end to start.
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 
AnswerRe: WTL Pin
George L. Jackson28-Nov-06 14:49
George L. Jackson28-Nov-06 14:49 
QuestionSTL vector storing thread Pin
_tasleem25-Nov-06 2:00
_tasleem25-Nov-06 2:00 
AnswerRe: STL vector storing thread Pin
Michael Dunn25-Nov-06 11:10
sitebuilderMichael Dunn25-Nov-06 11:10 
AnswerRe: STL vector storing thread Pin
Laxman Auti27-Nov-06 23:59
Laxman Auti27-Nov-06 23:59 
GeneralRe: STL vector storing thread Pin
_tasleem30-Nov-06 23:11
_tasleem30-Nov-06 23:11 

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.