Click here to Skip to main content
15,905,508 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralATL input parameter Pin
Anonymous19-Feb-03 23:54
Anonymous19-Feb-03 23:54 
GeneralRe: ATL input parameter Pin
Steve S20-Feb-03 1:36
Steve S20-Feb-03 1:36 
GeneralMax value in collection (STL) Pin
Kevin McFarlane19-Feb-03 11:19
Kevin McFarlane19-Feb-03 11:19 
GeneralRe: Max value in collection (STL) Pin
Ryan_Roberts19-Feb-03 11:40
Ryan_Roberts19-Feb-03 11:40 
GeneralRe: Max value in collection (STL) Pin
Kevin McFarlane19-Feb-03 11:56
Kevin McFarlane19-Feb-03 11:56 
GeneralStrange behavior - affects performance Pin
Chen Venkataraman19-Feb-03 11:18
Chen Venkataraman19-Feb-03 11:18 
Generalvector.erase(iterator) Pin
Anonymous19-Feb-03 6:20
Anonymous19-Feb-03 6:20 
GeneralRe: vector.erase(iterator) Pin
Joaquín M López Muñoz19-Feb-03 9:08
Joaquín M López Muñoz19-Feb-03 9:08 
The problem is that the call to erase invalidates it, so you can no longer use it for the remaining of the loop. Wou can fix this by noticing that vector::erase returns an interator to the following element:
for ( it=t.begin(); it != t.end(); ) // no increment here
{
if ( MyObject.GetIntValue() == (*it)
  it=t.erase(it);
else
  ++it;
}




Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralQuestion about strange declaration of STL map. Pin
George219-Feb-03 2:57
George219-Feb-03 2:57 
GeneralRe: Question about strange declaration of STL map. Pin
Joaquín M López Muñoz19-Feb-03 9:04
Joaquín M López Muñoz19-Feb-03 9:04 
GeneralRe: Question about strange declaration of STL map. Pin
George219-Feb-03 19:47
George219-Feb-03 19:47 
GeneralQuick question on CAtlArray Pin
Steve Thresher19-Feb-03 2:45
Steve Thresher19-Feb-03 2:45 
GeneralATL events Pin
Shah Shehpori19-Feb-03 0:58
sussShah Shehpori19-Feb-03 0:58 
GeneralRe: ATL events Pin
Steve S19-Feb-03 1:47
Steve S19-Feb-03 1:47 
GeneralRe: ATL events Pin
TigerNinja_19-Feb-03 3:02
TigerNinja_19-Feb-03 3:02 
QuestionConstant time insert algorithm of STL Deque? Pin
George218-Feb-03 14:45
George218-Feb-03 14:45 
AnswerRe: Constant time insert algorithm of STL Deque? Pin
Tim Smith19-Feb-03 2:21
Tim Smith19-Feb-03 2:21 
GeneralRe: Constant time insert algorithm of STL Deque? Pin
George219-Feb-03 2:31
George219-Feb-03 2:31 
GeneralWindowless ActiveX Control - VC++ Pin
Raphael Amorim17-Feb-03 8:16
professionalRaphael Amorim17-Feb-03 8:16 
GeneralRe: Windowless ActiveX Control - VC++ Pin
geo_m17-Feb-03 23:13
geo_m17-Feb-03 23:13 
GeneralRe: Windowless ActiveX Control - VC++ Pin
Raphael Amorim18-Feb-03 3:13
professionalRaphael Amorim18-Feb-03 3:13 
GeneralRe: Windowless ActiveX Control - VC++ Pin
geo_m18-Feb-03 3:25
geo_m18-Feb-03 3:25 
GeneralRe: Windowless ActiveX Control - VC++ Pin
Raphael Amorim18-Feb-03 5:04
professionalRaphael Amorim18-Feb-03 5:04 
GeneralQuestion about memory leak in STL vector. Pin
George217-Feb-03 1:32
George217-Feb-03 1:32 
GeneralRe: Question about memory leak in STL vector. Pin
Tim Smith17-Feb-03 2:03
Tim Smith17-Feb-03 2:03 

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.