Click here to Skip to main content
15,917,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSTL map issue Pin
George_George26-Aug-08 17:31
George_George26-Aug-08 17:31 
AnswerRe: STL map issue Pin
Nibu babu thomas26-Aug-08 19:11
Nibu babu thomas26-Aug-08 19:11 
GeneralRe: STL map issue Pin
George_George26-Aug-08 19:41
George_George26-Aug-08 19:41 
GeneralRe: STL map issue Pin
Nibu babu thomas26-Aug-08 19:58
Nibu babu thomas26-Aug-08 19:58 
GeneralRe: STL map issue Pin
George_George26-Aug-08 23:26
George_George26-Aug-08 23:26 
GeneralRe: STL map issue Pin
Nibu babu thomas26-Aug-08 23:32
Nibu babu thomas26-Aug-08 23:32 
GeneralRe: STL map issue Pin
George_George26-Aug-08 23:34
George_George26-Aug-08 23:34 
GeneralRe: STL map issue Pin
Nibu babu thomas26-Aug-08 23:50
Nibu babu thomas26-Aug-08 23:50 
George_George wrote:
It means we have to use it... Smile


Yeah sometimes!


George_George wrote:
Any way, could you list your reaons (besides the above one) why and when using pair has special benefits please?


From MSDN:

The two most common uses for a pair are as return types for functions that return two values and as elements for the associative container classes map Class and multimap Class that have both a key and a value type associated with each element. The latter satisfies the requirements for a pair associative container and has a value type of the form pair<const mapped_type="">.


Nibu babu thomas
Microsoft MVP for VC++


Code must be written to be read, not by the compiler, but by another human being.

Programming Blog: http://nibuthomas.wordpress.com

GeneralRe: STL map issue Pin
George_George27-Aug-08 1:58
George_George27-Aug-08 1:58 
QuestionRPC Client Pin
sunny_vc26-Aug-08 15:44
sunny_vc26-Aug-08 15:44 
AnswerRe: RPC Client Pin
Garth J Lancaster26-Aug-08 17:00
professionalGarth J Lancaster26-Aug-08 17:00 
GeneralRe: RPC Client Pin
sunny_vc27-Aug-08 21:25
sunny_vc27-Aug-08 21:25 
QuestionLimit for vector????? Pin
TooShy2Talk26-Aug-08 15:29
TooShy2Talk26-Aug-08 15:29 
AnswerRe: Limit for vector????? Pin
Nibu babu thomas26-Aug-08 19:06
Nibu babu thomas26-Aug-08 19:06 
QuestionCMFCRibbonButton / CMFCRibbonBaseElement Pin
bigcivilmelon26-Aug-08 13:11
bigcivilmelon26-Aug-08 13:11 
QuestionNeed help to pass float or Double argument with _begintherad() Pin
smdhd26-Aug-08 12:41
smdhd26-Aug-08 12:41 
AnswerRe: Need help to pass float or Double argument with _begintherad() Pin
Rick York26-Aug-08 13:11
mveRick York26-Aug-08 13:11 
AnswerRe: Need help to pass float or Double argument with _begintherad() Pin
Mark Salsbery27-Aug-08 6:59
Mark Salsbery27-Aug-08 6:59 
QuestionMDIParent problems [modified] Pin
C# Beginner Nick26-Aug-08 10:37
C# Beginner Nick26-Aug-08 10:37 
AnswerRe: MDIParent problems Pin
Mark Salsbery26-Aug-08 10:45
Mark Salsbery26-Aug-08 10:45 
GeneralRe: MDIParent problems Pin
C# Beginner Nick26-Aug-08 10:56
C# Beginner Nick26-Aug-08 10:56 
GeneralRe: MDIParent problems Pin
Mark Salsbery26-Aug-08 11:53
Mark Salsbery26-Aug-08 11:53 
GeneralRe: MDIParent problems Pin
C# Beginner Nick26-Aug-08 17:42
C# Beginner Nick26-Aug-08 17:42 
Questionlist ".remove()" issue Pin
FrankMookie26-Aug-08 8:27
FrankMookie26-Aug-08 8:27 
AnswerRe: list ".remove()" issue Pin
Roger Stoltz26-Aug-08 9:09
Roger Stoltz26-Aug-08 9:09 

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.