Click here to Skip to main content
16,007,885 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Using C++ exception handling in ATL Pin
puzzolino10-Apr-03 21:15
puzzolino10-Apr-03 21:15 
GeneralMinimize problem Pin
super7-Apr-03 0:27
professionalsuper7-Apr-03 0:27 
GeneralRe: Minimize problem Pin
dysxq8-Apr-03 4:18
dysxq8-Apr-03 4:18 
GeneralConfused on UISetRadio() Pin
Tommy2k6-Apr-03 23:53
Tommy2k6-Apr-03 23:53 
GeneralRe: Confused on UISetRadio() Pin
Michael Dunn7-Apr-03 7:48
sitebuilderMichael Dunn7-Apr-03 7:48 
GeneralRe: Confused on UISetRadio() Pin
Tommy2k10-Apr-03 7:03
Tommy2k10-Apr-03 7:03 
GeneralRe: Confused on UISetRadio() Pin
Michael Dunn3-May-03 12:54
sitebuilderMichael Dunn3-May-03 12:54 
Generalfor_each / accumulate Pin
Chris Losinger5-Apr-03 10:03
professionalChris Losinger5-Apr-03 10:03 
is there a way to do this:

// get a sum of the results from calling a single member function on each element
int sum = 0;
for (myIterator it = sv.begin(); it != sv.end(); it++)
{
  sum+=(*it).GetValue();
}


using for_each or accumulate, without writing extra functions? in other words, i want it all on one line...

// something like...
int sum = std::accumulate(sv.begin(), sv.end(), 0, some_way_to_call_GetValue()_on_the_current_item);


?

(i should really go buy an STL book)

-c



Image tools: ThumbNailer, Bobber, TIFFAssembler
GeneralRe: for_each / accumulate Pin
valikac6-Apr-03 6:47
valikac6-Apr-03 6:47 
GeneralRe: for_each / accumulate Pin
Zdeslav Vojkovic7-Apr-03 23:36
Zdeslav Vojkovic7-Apr-03 23:36 
GeneralRe: for_each / accumulate Pin
jbarton10-Apr-03 2:34
jbarton10-Apr-03 2:34 
GeneralCListCtrl as STL container Pin
Chris Losinger4-Apr-03 4:04
professionalChris Losinger4-Apr-03 4:04 
GeneralRe: CListCtrl as STL container Pin
Joaquín M López Muñoz4-Apr-03 4:14
Joaquín M López Muñoz4-Apr-03 4:14 
GeneralRe: CListCtrl as STL container Pin
Chris Losinger4-Apr-03 4:25
professionalChris Losinger4-Apr-03 4:25 
GeneralRe: CListCtrl as STL container Pin
Nick Parker4-Apr-03 4:38
protectorNick Parker4-Apr-03 4:38 
GeneralRe: CListCtrl as STL container Pin
Chris Losinger4-Apr-03 4:52
professionalChris Losinger4-Apr-03 4:52 
GeneralRe: CListCtrl as STL container Pin
Neville Franks12-Apr-03 12:13
Neville Franks12-Apr-03 12:13 
GeneralCustom property pages for device manager using WTL Pin
NarayanaRajaniX3-Apr-03 17:31
NarayanaRajaniX3-Apr-03 17:31 
QuestionHow to create Transparent Bitmap? Pin
jkav3-Apr-03 16:43
jkav3-Apr-03 16:43 
AnswerRe: How to create Transparent Bitmap? Pin
Ed Gadziemski7-Apr-03 4:56
professionalEd Gadziemski7-Apr-03 4:56 
Generalusing cin.getline() with string Pin
Luis E. Cuadrado3-Apr-03 2:47
Luis E. Cuadrado3-Apr-03 2:47 
GeneralRe: using cin.getline() with string Pin
valikac3-Apr-03 13:31
valikac3-Apr-03 13:31 
GeneralRe: using cin.getline() with string Pin
Luis E. Cuadrado4-Apr-03 1:55
Luis E. Cuadrado4-Apr-03 1:55 
GeneralRe: using cin.getline() with string Pin
Joaquín M López Muñoz4-Apr-03 2:33
Joaquín M López Muñoz4-Apr-03 2:33 
GeneralRe: using cin.getline() with string Pin
Luis E. Cuadrado4-Apr-03 5:34
Luis E. Cuadrado4-Apr-03 5: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.