Click here to Skip to main content
15,900,725 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSTL string : is it any good? Pin
Jon Hulatt15-Apr-02 6:16
Jon Hulatt15-Apr-02 6:16 
AnswerRe: STL string : is it any good? Pin
Anders Molin15-Apr-02 7:03
professionalAnders Molin15-Apr-02 7:03 
GeneralRe: STL string : is it any good? Pin
Tim Smith15-Apr-02 7:14
Tim Smith15-Apr-02 7:14 
GeneralRe: STL string : is it any good? Pin
Tim Smith15-Apr-02 7:15
Tim Smith15-Apr-02 7:15 
GeneralRe: STL string : is it any good? Pin
Jörgen Sigvardsson15-Apr-02 9:28
Jörgen Sigvardsson15-Apr-02 9:28 
GeneralRe: STL string : is it any good? Pin
Tim Smith15-Apr-02 9:37
Tim Smith15-Apr-02 9:37 
AnswerRe: STL string : is it any good? Pin
Ramon Casellas15-Apr-02 7:31
Ramon Casellas15-Apr-02 7:31 
GeneralRe: STL string : is it any good? Pin
Joaquín M López Muñoz15-Apr-02 8:38
Joaquín M López Muñoz15-Apr-02 8:38 
To the best of my knowledge, the std requires that elements should be allocated contiguosly (not sure)

The standard does not guarantee this, but later on this was perceived as a defect in the standard itself and a so called "tecnhical corrigendum" was issued in 2000 that fixes the error. Moreover, every compiler known so far stores vectors contiguously (and future ones are compelled to follow the corrigendum as well as the standard). So the moral is: contiguous vectors are a standard guarantee as of today, and every compiler implement them this way.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: STL string : is it any good? Pin
Tim Smith15-Apr-02 9:02
Tim Smith15-Apr-02 9:02 
GeneralRe: STL string : is it any good? Pin
Joaquín M López Muñoz15-Apr-02 9:46
Joaquín M López Muñoz15-Apr-02 9:46 
GeneralRe: STL string : is it any good? Pin
Tim Smith15-Apr-02 9:57
Tim Smith15-Apr-02 9:57 
GeneralRe: STL string : is it any good? Pin
Giles15-Apr-02 9:26
Giles15-Apr-02 9:26 
GeneralRe: STL string : is it any good? Pin
Mike Nordell15-Apr-02 11:02
Mike Nordell15-Apr-02 11:02 
GeneralUrgent help needed. enquire within Pin
15-Apr-02 5:59
suss15-Apr-02 5:59 
GeneralRe: Urgent help needed. enquire within Pin
Joaquín M López Muñoz15-Apr-02 6:35
Joaquín M López Muñoz15-Apr-02 6:35 
GeneralRe: Urgent help needed. enquire within Pin
15-Apr-02 6:40
suss15-Apr-02 6:40 
GeneralRe: Urgent help needed. enquire within Pin
Nish Nishant15-Apr-02 6:42
sitebuilderNish Nishant15-Apr-02 6:42 
GeneralRe: Urgent help needed. enquire within Pin
15-Apr-02 6:52
suss15-Apr-02 6:52 
GeneralRe: Urgent help needed. enquire within Pin
Nish Nishant15-Apr-02 7:00
sitebuilderNish Nishant15-Apr-02 7:00 
GeneralRe: Urgent help needed. enquire within Pin
15-Apr-02 7:12
suss15-Apr-02 7:12 
GeneralRe: Urgent help needed. enquire within Pin
Nish Nishant15-Apr-02 7:23
sitebuilderNish Nishant15-Apr-02 7:23 
GeneralRe: Urgent help needed. enquire within Pin
15-Apr-02 7:35
suss15-Apr-02 7:35 
GeneralRe: Urgent help needed. enquire within Pin
15-Apr-02 22:39
suss15-Apr-02 22:39 
GeneralRe: Urgent help needed. enquire within Pin
Nish Nishant15-Apr-02 6:41
sitebuilderNish Nishant15-Apr-02 6:41 
GeneralRe: Urgent help needed. enquire within Pin
Christian Graus15-Apr-02 22:55
protectorChristian Graus15-Apr-02 22: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.