Click here to Skip to main content
15,904,926 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to assign this value to y? Pin
Maxwell Chen4-Mar-08 20:34
Maxwell Chen4-Mar-08 20:34 
GeneralRe: how to assign this value to y? Pin
ThatsAlok5-Mar-08 0:59
ThatsAlok5-Mar-08 0:59 
AnswerRe: how to assign this value to y? Pin
uusheikh4-Mar-08 20:44
uusheikh4-Mar-08 20:44 
AnswerRe: how to assign this value to y? Pin
David Crow5-Mar-08 3:55
David Crow5-Mar-08 3:55 
QuestionHow to identify the code of login page? Pin
chinakknd4-Mar-08 17:38
chinakknd4-Mar-08 17:38 
AnswerRe: How to identify the code of login page? Pin
Christian Graus4-Mar-08 19:10
protectorChristian Graus4-Mar-08 19:10 
GeneralCHttpFile::EndRequest Fails Pin
yaminisridaran4-Mar-08 16:36
yaminisridaran4-Mar-08 16:36 
Generalreallocation Pin
George_George4-Mar-08 16:16
George_George4-Mar-08 16:16 
Hello everyone,


We alway meet with the term reallocation, but after some deep thinking, I am confused what exact definition of what means reallocation. Here is some statements from the book The C++ Standard Library as quoted below.

My two questions,

1. How do you understand the term reallocation in the book quoted section?

2. Are there any standard definition for reallocation?

My understanding, reallocation means making storage larger or smaller (or making the same size, but different address? not sure?), whether or not it involves free existing memory (e.g. vector) or not (e.g. deque) depends on internal implementation. It is hard to find a suitable definition for reallocation, if you have, please share with me. Smile | :)

section 6.3.1 Abilities of deques

--------------------
Deques provide no support to control the capacity and the moment of reallocation. In particular, any insertion or deletion of elements other than at the beginning or end invalidates all pointers, references, and iterators that refer to elements of the deque. However, reallocation may perform better than for vectors, because according to their typical internal structure, deques don't have to copy all elements on reallocation.
--------------------


thanks in advance,
George
GeneralRe: reallocation Pin
Luc Pattyn6-Mar-08 7:09
sitebuilderLuc Pattyn6-Mar-08 7:09 
GeneralRe: reallocation Pin
George_George6-Mar-08 13:55
George_George6-Mar-08 13:55 
General[GDI+] Font contructing problem Pin
followait4-Mar-08 15:46
followait4-Mar-08 15:46 
GeneralRe: [GDI+] Font contructing problem Pin
Mark Salsbery4-Mar-08 16:10
Mark Salsbery4-Mar-08 16:10 
GeneralPrison? it might be a disaster Pin
sold_out4-Mar-08 15:38
sold_out4-Mar-08 15:38 
GeneralRe: Prison? it might be a disaster Pin
Mark Salsbery4-Mar-08 15:45
Mark Salsbery4-Mar-08 15:45 
GeneralRe: Prison? it might be a disaster Pin
sold_out4-Mar-08 15:49
sold_out4-Mar-08 15:49 
GeneralRe: Prison? it might be a disaster Pin
Mark Salsbery4-Mar-08 15:53
Mark Salsbery4-Mar-08 15:53 
GeneralRe: Prison? it might be a disaster Pin
sold_out4-Mar-08 15:58
sold_out4-Mar-08 15:58 
GeneralRe: Prison? it might be a disaster Pin
Mark Salsbery4-Mar-08 16:17
Mark Salsbery4-Mar-08 16:17 
GeneralRe: Prison? it might be a disaster Pin
sold_out4-Mar-08 16:23
sold_out4-Mar-08 16:23 
GeneralRe: Prison? it might be a disaster Pin
ThatsAlok4-Mar-08 20:35
ThatsAlok4-Mar-08 20:35 
GeneralRe: Prison? it might be a disaster Pin
ThatsAlok4-Mar-08 20:32
ThatsAlok4-Mar-08 20:32 
GeneralRe: Prison? it might be a disaster Pin
Pete O'Hanlon5-Mar-08 22:26
mvePete O'Hanlon5-Mar-08 22:26 
GeneralRe: Prison? it might be a disaster Pin
Christian Graus5-Mar-08 14:58
protectorChristian Graus5-Mar-08 14:58 
Generaldependent names Pin
George_George4-Mar-08 15:27
George_George4-Mar-08 15:27 
GeneralRe: dependent names Pin
Maxwell Chen4-Mar-08 19:55
Maxwell Chen4-Mar-08 19:55 

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.