Click here to Skip to main content
15,919,879 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Storing,retrieving from an object. Pin
f6422-Apr-04 15:49
f6422-Apr-04 15:49 
General: IPersistStorage::Load() for Embeded object of Word Creates .doc file in Temp Pin
anshumanshinde5-Apr-04 3:15
anshumanshinde5-Apr-04 3:15 
GeneralRelease of Events params Pin
El'Cachubrey5-Apr-04 2:06
El'Cachubrey5-Apr-04 2:06 
GeneralRe: Release of Events params Pin
Steve S5-Apr-04 2:15
Steve S5-Apr-04 2:15 
GeneralRe: Release of Events params Pin
El'Cachubrey5-Apr-04 4:09
El'Cachubrey5-Apr-04 4:09 
GeneralSTL Question Pin
Josef Schroettle4-Apr-04 4:17
Josef Schroettle4-Apr-04 4:17 
GeneralRe: STL Question Pin
Jörgen Sigvardsson4-Apr-04 8:55
Jörgen Sigvardsson4-Apr-04 8:55 
GeneralRe: STL Question Pin
Josef Schroettle5-Apr-04 7:27
Josef Schroettle5-Apr-04 7:27 
<small><b>Jörgen Sigvardsson wrote:</b></small>
<i>I doubt it. MSVC doesn't allow you to instantiate all_t unless field_t is known at the point of instantiation. Since field_t is known, then also its size is known, and therefore the heap will be just fine</i>

The question is there, that clients which just include the header file don't know the size of 'T'. But I assume that the vector<T> has always the same size and sizeof(T) is just needed when vector<t> gets memory for a chunk of T's. But in my opinion this is highly depending on the STL implementation, one could e.g. cache the sizeof(T) in a local variable of vector<> which would then be not the real size which is only known to the implementation file.
I'll try asking Scott Meyers which wrote the excellent book 'Effective STL'.

Josef
GeneralRe: STL Question Pin
Jörgen Sigvardsson5-Apr-04 12:01
Jörgen Sigvardsson5-Apr-04 12:01 
GeneralRe: STL Question Pin
Josef Schroettle6-Apr-04 7:26
Josef Schroettle6-Apr-04 7:26 
GeneralRe: STL Question Pin
Nemanja Trifunovic6-Apr-04 10:44
Nemanja Trifunovic6-Apr-04 10:44 
QuestionScrolling Dialog Box? Pin
Rick Pingry3-Apr-04 4:03
Rick Pingry3-Apr-04 4:03 
GeneralCOM out of process server (EXE) instantiated 2 times Pin
sebdej31-Mar-04 2:19
sebdej31-Mar-04 2:19 
GeneralRe: COM out of process server (EXE) instantiated 2 times Pin
Mike Dimmick1-Apr-04 1:31
Mike Dimmick1-Apr-04 1:31 
GeneralRe: COM out of process server (EXE) instantiated 2 times Pin
sebdej8-Apr-04 3:24
sebdej8-Apr-04 3:24 
GeneralURLDownloadToFile Pin
mikewithersone30-Mar-04 1:31
mikewithersone30-Mar-04 1:31 
GeneralRe: URLDownloadToFile Pin
Monty230-Mar-04 2:01
Monty230-Mar-04 2:01 
GeneralRe: URLDownloadToFile Pin
22491730-Mar-04 2:17
22491730-Mar-04 2:17 
GeneralRe: URLDownloadToFile Pin
mikewithersone30-Mar-04 6:37
mikewithersone30-Mar-04 6:37 
QuestionIs there some WTL structure like POSITION of MFC? Pin
freehawk29-Mar-04 22:42
freehawk29-Mar-04 22:42 
AnswerRe: Is there some WTL structure like POSITION of MFC? Pin
_Magnus_30-Mar-04 0:39
_Magnus_30-Mar-04 0:39 
GeneralRe: Is there some WTL structure like POSITION of MFC? Pin
freehawk30-Mar-04 1:09
freehawk30-Mar-04 1:09 
GeneralRe: Is there some WTL structure like POSITION of MFC? Pin
_Magnus_30-Mar-04 1:09
_Magnus_30-Mar-04 1:09 
GeneralRe: Is there some WTL structure like POSITION of MFC? Pin
Tim Smith30-Mar-04 16:01
Tim Smith30-Mar-04 16:01 
GeneralRe: Is there some WTL structure like POSITION of MFC? Pin
Anonymous1-Apr-04 6:03
Anonymous1-Apr-04 6:03 

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.