Click here to Skip to main content
15,921,028 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: How to use m_spClientSite Pin
geo_m6-Dec-02 5:25
geo_m6-Dec-02 5:25 
GeneralRe: How to use m_spClientSite Pin
Anonymous6-Dec-02 6:57
Anonymous6-Dec-02 6:57 
GeneralRe: How to use m_spClientSite Pin
geo_m6-Dec-02 8:39
geo_m6-Dec-02 8:39 
QuestionSTL Q : find_if = poop. any better? Pin
Chris Losinger5-Dec-02 15:50
professionalChris Losinger5-Dec-02 15:50 
AnswerRe: STL Q : find_if = poop. any better? Pin
Taka Muraoka5-Dec-02 16:07
Taka Muraoka5-Dec-02 16:07 
GeneralRe: STL Q : find_if = poop. any better? Pin
Chris Losinger5-Dec-02 18:27
professionalChris Losinger5-Dec-02 18:27 
GeneralRe: STL Q : find_if = poop. any better? Pin
Taka Muraoka5-Dec-02 18:42
Taka Muraoka5-Dec-02 18:42 
GeneralRe: STL Q : find_if = poop. any better? Pin
Chris Losinger5-Dec-02 19:23
professionalChris Losinger5-Dec-02 19:23 
nope. equal_range is just like lower_bound, but with a span, instead of a single position:

"the function determines the largest range of positions over which val can be inserted in the sequence and still preserve its ordering"

my vector has X elements. each element has an integer member variable that i'm ordering, and searching by. the less than operator for these elements only looks at the ordering and searching integer, nothing else. in the case i'm testing, these values range from 10 to 170.

if i do an equal_range "search" (or lower_bound) for "0", i get an iterator for the first element in the sequence, the one that contains "10".

i suppose i can test that iterator to see if the element is actually the one i'm searching for. but it seems like a huge hole in the STL, to not provide a binary search on a sorted collection.

oh well. guess i'll write my own.

-c



There's one easy way to prove the effectiveness of 'letting the market decide' when it comes to environmental protection. It's spelt 'S-U-V'.
--Holgate, from Plastic

GeneralRe: STL Q : find_if = poop. any better? Pin
markkuk7-Dec-02 2:15
markkuk7-Dec-02 2:15 
GeneralRe: STL Q : find_if = poop. any better? Pin
Chris Losinger7-Dec-02 13:28
professionalChris Losinger7-Dec-02 13:28 
AnswerRe: STL Q : find_if = poop. any better? Pin
Nick Parker5-Dec-02 17:12
protectorNick Parker5-Dec-02 17:12 
GeneralRe: STL Q : find_if = poop. any better? Pin
Chris Losinger5-Dec-02 18:08
professionalChris Losinger5-Dec-02 18:08 
GeneralRe: STL Q : find_if = poop. any better? Pin
Tim Smith6-Dec-02 2:25
Tim Smith6-Dec-02 2:25 
GeneralRe: STL Q : find_if = poop. any better? Pin
Todd Smith12-Dec-02 11:45
Todd Smith12-Dec-02 11:45 
GeneralRe: STL Q : find_if = poop. any better? Pin
Chris Losinger12-Dec-02 12:46
professionalChris Losinger12-Dec-02 12:46 
GeneralATL server multiple instances Pin
Sébastien Lescure4-Dec-02 12:03
sussSébastien Lescure4-Dec-02 12:03 
GeneralRe: ATL server multiple instances Pin
Vi25-Dec-02 4:56
Vi25-Dec-02 4:56 
GeneralActiveX Control (ATL) - Properties irratic behaviour Pin
Tushar Bhatt3-Dec-02 23:50
Tushar Bhatt3-Dec-02 23:50 
GeneralDepcrecated stl-streams Pin
klawipo3-Dec-02 8:52
klawipo3-Dec-02 8:52 
GeneralRe: Depcrecated stl-streams Pin
Christian Graus3-Dec-02 10:53
protectorChristian Graus3-Dec-02 10:53 
GeneralRe: Depcrecated stl-streams Pin
klawipo3-Dec-02 11:52
klawipo3-Dec-02 11:52 
GeneralRe: Depcrecated stl-streams Pin
Christian Graus4-Dec-02 9:43
protectorChristian Graus4-Dec-02 9:43 
GeneralRe: Depcrecated stl-streams Pin
Taka Muraoka5-Dec-02 16:09
Taka Muraoka5-Dec-02 16:09 
QuestionATL 7: How to _Module.GetModuleInstance()? Pin
Binky3-Dec-02 5:49
Binky3-Dec-02 5:49 
AnswerRe: ATL 7: How to _Module.GetModuleInstance()? Pin
geo_m4-Dec-02 3:25
geo_m4-Dec-02 3:25 

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.