Click here to Skip to main content
15,901,205 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Pls do help me out......Very urgent!!!!! Pin
harish2rock2-Mar-08 16:33
harish2rock2-Mar-08 16:33 
GeneralRe: Pls do help me out......Very urgent!!!!! Pin
Rajesh R Subramanian2-Mar-08 19:01
professionalRajesh R Subramanian2-Mar-08 19:01 
QuestionRe: Pls do help me out......Very urgent!!!!! Pin
Rajesh R Subramanian2-Mar-08 19:02
professionalRajesh R Subramanian2-Mar-08 19:02 
GeneralRe: Pls do help me out......Very urgent!!!!! Pin
harish2rock8-Mar-08 21:07
harish2rock8-Mar-08 21:07 
GeneralRe: Pls do help me out......Very urgent!!!!! Pin
harish2rock11-Mar-08 2:02
harish2rock11-Mar-08 2:02 
GeneralInnosetup and side-by-side assemblies Pin
dontknowitall2-Mar-08 3:51
dontknowitall2-Mar-08 3:51 
GeneralRe: Innosetup and side-by-side assemblies Pin
krmed2-Mar-08 7:42
krmed2-Mar-08 7:42 
GeneralRe: Innosetup and side-by-side assemblies Pin
dontknowitall2-Mar-08 8:52
dontknowitall2-Mar-08 8:52 
GeneralRe: Innosetup and side-by-side assemblies Pin
krmed3-Mar-08 0:43
krmed3-Mar-08 0:43 
GeneralRe: Innosetup and side-by-side assemblies Pin
PJ Arends2-Mar-08 22:35
professionalPJ Arends2-Mar-08 22:35 
QuestionCFileDialog Pin
Henri2-Mar-08 3:40
Henri2-Mar-08 3:40 
GeneralRe: CFileDialog Pin
Doc Lobster2-Mar-08 4:40
Doc Lobster2-Mar-08 4:40 
GeneralRe: CFileDialog Pin
Mark Salsbery2-Mar-08 7:21
Mark Salsbery2-Mar-08 7:21 
GeneralRe: CFileDialog Pin
Sameerkumar Namdeo2-Mar-08 16:15
Sameerkumar Namdeo2-Mar-08 16:15 
Generalcant create process :( Pin
david bagaturia2-Mar-08 1:24
david bagaturia2-Mar-08 1:24 
GeneralRe: cant create process :( Pin
Hamid_RT2-Mar-08 4:50
Hamid_RT2-Mar-08 4:50 
QuestionForce flush of unwritten data to USB stick? Pin
Dominik Reichl2-Mar-08 0:54
Dominik Reichl2-Mar-08 0:54 
AnswerRe: Force flush of unwritten data to USB stick? Pin
dontknowitall2-Mar-08 3:39
dontknowitall2-Mar-08 3:39 
QuestionRe: Force flush of unwritten data to USB stick? Pin
Dominik Reichl2-Mar-08 4:00
Dominik Reichl2-Mar-08 4:00 
GeneralRe: Force flush of unwritten data to USB stick? Pin
dontknowitall2-Mar-08 9:00
dontknowitall2-Mar-08 9:00 
GeneralRe: Force flush of unwritten data to USB stick? Pin
Dominik Reichl2-Mar-08 9:57
Dominik Reichl2-Mar-08 9:57 
AnswerRe: Force flush of unwritten data to USB stick? Pin
JudyL_MD3-Mar-08 2:13
JudyL_MD3-Mar-08 2:13 
Generaldeque best practices Pin
George_George1-Mar-08 23:18
George_George1-Mar-08 23:18 
Hello everyone,


This is what mentioned in the book The C++ Standard Library, section 6.3 Deques,

--------------------
In summary, you should prefer a deque if the following is true:

You don't refer to elements of the container.

It is important that the container frees memory when it is no longer used (however, the standard does not guarantee that this happens).
--------------------

My confusions,

1. What means "refer to elements of the container"? We should not do that? Why -- we always refer to elements in the container? When we use iterator of deque to acccess elements in deque container, we always refer to elements of container, right? What does the author mean?

2. I think whether deque container implementation actually free the memory when we do erase or pop or just mark it as freed to reserve for future use (e.g. insert or push) is up to implementation details, does this point to be a reason why we use deque? Confused.


thanks in advance,
George
GeneralRe: deque best practices Pin
Chris Losinger2-Mar-08 5:15
professionalChris Losinger2-Mar-08 5:15 
GeneralRe: deque best practices Pin
George_George2-Mar-08 14:09
George_George2-Mar-08 14: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.