Click here to Skip to main content
15,920,896 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
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 
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 
close. but it needs to take a predicate, because the elements in the vector are classes and i'm looking an element which has a member variable equal to a certain value.

right now, my code looks like:

class scaneql
{
public:
   scaneql( int lookfor) : i(lookfor) {}
   bool operator()(const scan & a) const
   {
     return a.i == i;
   }
   private:
     int i; 
   };
...
std::vector< scan>::const_iterator curScan = std::find_if(m_rows.begin(), m_rows.end(), scaneql((int)y));






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
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 
GeneralNeed help in firing event from second thread using shared variable!! Pin
bahruddina3-Dec-02 5:29
bahruddina3-Dec-02 5:29 
GeneralRe: Need help in firing event from second thread using shared variable!! Pin
geo_m5-Dec-02 1:14
geo_m5-Dec-02 1:14 
GeneralRe: Need help in firing event from second thread using shared variable!! Pin
bahruddina6-Dec-02 20:16
bahruddina6-Dec-02 20:16 
GeneralRe: Need help in firing event from second thread using shared variable!! Pin
geo_m6-Dec-02 22:34
geo_m6-Dec-02 22:34 

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.