Click here to Skip to main content
16,011,428 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: clear the list box Pin
CPallini27-Feb-08 3:17
mveCPallini27-Feb-08 3:17 
GeneralRe: clear the list box Pin
bhat27-Feb-08 3:22
bhat27-Feb-08 3:22 
GeneralRe: clear the list box Pin
bhat27-Feb-08 3:30
bhat27-Feb-08 3:30 
GeneralRe: clear the list box Pin
CPallini27-Feb-08 3:33
mveCPallini27-Feb-08 3:33 
JokeRe: clear the list box Pin
Hamid_RT27-Feb-08 4:58
Hamid_RT27-Feb-08 4:58 
GeneralRe: clear the list box Pin
CPallini27-Feb-08 5:10
mveCPallini27-Feb-08 5:10 
GeneralRe: clear the list box Pin
Hamid_RT27-Feb-08 5:18
Hamid_RT27-Feb-08 5:18 
Generalallocator implementation Pin
George_George27-Feb-08 2:18
George_George27-Feb-08 2:18 
Hello everyone,


I have debugged into STL implementation for allocator in file xmemory (Visual Studio 2008). I found it has not data members, the same as its base class _Allocator_base. Is that correct?

http://msdn2.microsoft.com/en-us/library/6s8wyf7c.aspx

My questions is what is the purpose of copy? It always returns true. Here is the code,

you can see do nothing for copy constructor as well.

allocator(const allocator<_Ty>&) _THROW0()
{
    // construct by copying (do nothing)
}

		// allocator TEMPLATE OPERATORS
template<class _Ty,
	class _Other> inline
	bool operator==(const allocator<_Ty>&, const allocator<_Other>&) _THROW0()
	{	// test for allocator equality (always true)
	return (true);
	}



thanks in advance,
George
QuestionRe: allocator implementation Pin
David Crow27-Feb-08 5:22
David Crow27-Feb-08 5:22 
GeneralRe: allocator implementation Pin
George_George27-Feb-08 18:24
George_George27-Feb-08 18:24 
GeneralRe: allocator implementation Pin
David Crow28-Feb-08 2:26
David Crow28-Feb-08 2:26 
GeneralRe: allocator implementation Pin
George_George28-Feb-08 14:22
George_George28-Feb-08 14:22 
GeneralRe: allocator implementation Pin
David Crow28-Feb-08 16:25
David Crow28-Feb-08 16:25 
QuestionDynmaic created CMyView, how to update the context menu item UI? Pin
followait27-Feb-08 1:49
followait27-Feb-08 1:49 
AnswerRe: Dynmaic created CMyView, how to update the context menu item UI? Pin
Mark Salsbery27-Feb-08 7:14
Mark Salsbery27-Feb-08 7:14 
GeneralOS Threads Scheduling Pin
reza matinnejad27-Feb-08 1:38
reza matinnejad27-Feb-08 1:38 
GeneralRe: OS Threads Scheduling Pin
Cedric Moonen27-Feb-08 1:55
Cedric Moonen27-Feb-08 1:55 
GeneralRe: OS Threads Scheduling Pin
reza matinnejad27-Feb-08 2:08
reza matinnejad27-Feb-08 2:08 
GeneralRe: OS Threads Scheduling Pin
pbraun27-Feb-08 9:32
pbraun27-Feb-08 9:32 
QuestionHow to integrate *.htm in MFC program? Pin
TooShy2Talk27-Feb-08 0:02
TooShy2Talk27-Feb-08 0:02 
QuestionRe: How to integrate *.htm in MFC program? Pin
Maxwell Chen27-Feb-08 0:09
Maxwell Chen27-Feb-08 0:09 
AnswerRe: How to integrate *.htm in MFC program? Pin
Rajesh R Subramanian27-Feb-08 0:16
professionalRajesh R Subramanian27-Feb-08 0:16 
GeneralRe: How to integrate *.htm in MFC program? Pin
Demian Panello27-Feb-08 1:42
Demian Panello27-Feb-08 1:42 
GeneralRe: How to integrate *.htm in MFC program? Pin
Hamid_RT27-Feb-08 5:05
Hamid_RT27-Feb-08 5:05 
GeneralPaint problems during scrolling Pin
misha_grewal26-Feb-08 23:26
misha_grewal26-Feb-08 23: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.