Click here to Skip to main content
15,919,245 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
GeneralRe: deque best practices Pin
Chris Losinger2-Mar-08 14:12
professionalChris Losinger2-Mar-08 14:12 
GeneralRe: deque best practices Pin
George_George2-Mar-08 14:51
George_George2-Mar-08 14:51 
GeneralRe: deque best practices Pin
Chris Losinger2-Mar-08 15:02
professionalChris Losinger2-Mar-08 15:02 
GeneralRe: deque best practices Pin
George_George2-Mar-08 15:13
George_George2-Mar-08 15:13 
Generaltypedef struct problem Pin
gentleguy1-Mar-08 22:21
gentleguy1-Mar-08 22:21 
GeneralRe: typedef struct problem Pin
Gary R. Wheeler2-Mar-08 1:04
Gary R. Wheeler2-Mar-08 1:04 
GeneralRe: typedef struct problem Pin
gentleguy2-Mar-08 15:52
gentleguy2-Mar-08 15:52 
GeneralRe: typedef struct problem Pin
Gary R. Wheeler3-Mar-08 11:18
Gary R. Wheeler3-Mar-08 11:18 
Generalsize and iterator of deque Pin
George_George1-Mar-08 20:43
George_George1-Mar-08 20:43 
GeneralRe: size and iterator of deque Pin
markkuk1-Mar-08 22:10
markkuk1-Mar-08 22:10 
GeneralRe: size and iterator of deque Pin
George_George1-Mar-08 22:50
George_George1-Mar-08 22:50 
Thanks markkuk,


1.

markkuk wrote:
1. "smart" means that the iterators must overload e.g. the ++ and -- operators to deal with non-contiguous memory blocks. That means a deque iterator must be a class type as opposed to a vector iterator which can be a plain pointer.


Thanks. Your description is clear. So it does not mean auto_ptr, just mean the pointer is not a plain raw point to deal with contigious memory block. Right? Smile | :)

2.

"the ++ and -- operators to deal with non-contiguous memory blocks", I think for deque, it involves move between different internal chunks (which are not continuous in memory address), right?

3.

Is it a must vector must use continuous memory block? I think it is not a must and if not a must, then for vector, it should be also smart pointer?


regards,
George
Generalrandom access iterator Pin
George_George1-Mar-08 20:33
George_George1-Mar-08 20:33 
GeneralRe: random access iterator Pin
Stephen Hewitt2-Mar-08 12:44
Stephen Hewitt2-Mar-08 12:44 
GeneralRe: random access iterator 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.