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

ATL / WTL / STL

 
GeneralRe: iterator question Pin
followait18-Feb-09 15:35
followait18-Feb-09 15:35 
GeneralRe: iterator question Pin
Nuri Ismail18-Feb-09 21:31
Nuri Ismail18-Feb-09 21:31 
AnswerRe: iterator question Pin
Stuart Dootson18-Feb-09 8:45
professionalStuart Dootson18-Feb-09 8:45 
AnswerRe: iterator question Pin
Stuart Dootson18-Feb-09 21:45
professionalStuart Dootson18-Feb-09 21:45 
QuestionUse a <set> to sort a <map>? Pin
Kyudos16-Feb-09 15:10
Kyudos16-Feb-09 15:10 
AnswerRe: Use a <set> to sort a <map>? Pin
«_Superman_»16-Feb-09 18:31
professional«_Superman_»16-Feb-09 18:31 
GeneralRe: Use a <set> to sort a <map>? Pin
Kyudos17-Feb-09 8:41
Kyudos17-Feb-09 8:41 
GeneralRe: Use a <set> to sort a <map>? Pin
Stuart Dootson17-Feb-09 20:41
professionalStuart Dootson17-Feb-09 20:41 
Kyudos wrote:
I appreciate that maps and sorting don't go together


Actually, the original response wasn't quite correct - maps and sorting do go together. The C++ Standard specifies that:

the fundamental property of iterators of associative containers is that they iterate through the containers in the nondescending order of keys where nondescending is defined by the comparison that was used to construct them.


Which means that when you iterate through a map or a set, you start at the smallest key and end at the biggest.

That duality of maps and sets is the reason that unordered_map[^] was added to the TR1 version of the standard library - taking away the ordering requirement may permit more efficient implementations.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: Use a <set> to sort a <map>? Pin
Eytukan22-Feb-09 20:05
Eytukan22-Feb-09 20:05 
AnswerRe: Use a <set> to sort a <map>? [modified] Pin
Stuart Dootson17-Feb-09 9:22
professionalStuart Dootson17-Feb-09 9:22 
QuestionWhy basic_string doesn't support back(), but vector do? Pin
followait13-Feb-09 17:52
followait13-Feb-09 17:52 
AnswerRe: Why basic_string doesn't support back(), but vector do? Pin
«_Superman_»13-Feb-09 19:44
professional«_Superman_»13-Feb-09 19:44 
AnswerRe: Why basic_string doesn't support back(), but vector do? Pin
Stuart Dootson15-Feb-09 4:03
professionalStuart Dootson15-Feb-09 4:03 
QuestionHow do we Inherit struct from another struct in IDL file Pin
Gopal_Kanchana11-Feb-09 23:44
Gopal_Kanchana11-Feb-09 23:44 
QuestionHow to trap Excel 2007 cell events using ATL addin Pin
SNI11-Feb-09 2:18
SNI11-Feb-09 2:18 
QuestionProblem with ATL COM Dll.... Firing event in thread Pin
chetanjoshi910-Feb-09 20:15
chetanjoshi910-Feb-09 20:15 
AnswerRe: Problem with ATL COM Dll.... Firing event in thread Pin
Stuart Dootson10-Feb-09 22:56
professionalStuart Dootson10-Feb-09 22:56 
GeneralRe: Problem with ATL COM Dll.... Firing event in thread Pin
chetanjoshi910-Feb-09 23:06
chetanjoshi910-Feb-09 23:06 
GeneralRe: Problem with ATL COM Dll.... Firing event in thread Pin
Stuart Dootson11-Feb-09 0:46
professionalStuart Dootson11-Feb-09 0:46 
GeneralRe: Problem with ATL COM Dll.... Firing event in thread Pin
chetanjoshi911-Feb-09 0:52
chetanjoshi911-Feb-09 0:52 
GeneralRe: Problem with ATL COM Dll.... Firing event in thread Pin
Stuart Dootson11-Feb-09 0:59
professionalStuart Dootson11-Feb-09 0:59 
GeneralRe: Problem with ATL COM Dll.... Firing event in thread Pin
chetanjoshi911-Feb-09 1:26
chetanjoshi911-Feb-09 1:26 
GeneralRe: Problem with ATL COM Dll.... Firing event in thread Pin
Stuart Dootson11-Feb-09 1:56
professionalStuart Dootson11-Feb-09 1:56 
GeneralRe: Problem with ATL COM Dll.... Firing event in thread Pin
chetanjoshi911-Feb-09 2:19
chetanjoshi911-Feb-09 2:19 
GeneralRe: Problem with ATL COM Dll.... Firing event in thread Pin
Stuart Dootson11-Feb-09 2:26
professionalStuart Dootson11-Feb-09 2:26 

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.