Click here to Skip to main content
15,917,628 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: STL gurus map operator [] Pin
Chris Losinger27-Aug-02 5:57
professionalChris Losinger27-Aug-02 5:57 
GeneralRe: STL gurus map operator [] Pin
_Magnus_27-Aug-02 6:04
_Magnus_27-Aug-02 6:04 
GeneralRe: STL gurus map operator [] Pin
sie27-Aug-02 6:19
sie27-Aug-02 6:19 
GeneralRe: STL gurus map operator [] Pin
_Magnus_27-Aug-02 6:21
_Magnus_27-Aug-02 6:21 
GeneralRe: STL gurus map operator [] Pin
Jim Crafton27-Aug-02 6:20
Jim Crafton27-Aug-02 6:20 
GeneralRe: STL gurus map operator [] Pin
_Magnus_27-Aug-02 6:25
_Magnus_27-Aug-02 6:25 
GeneralRe: STL gurus map operator [] Pin
Tomasz Sowinski27-Aug-02 6:26
Tomasz Sowinski27-Aug-02 6:26 
GeneralRe: STL gurus map operator [] Pin
Tomasz Sowinski27-Aug-02 6:25
Tomasz Sowinski27-Aug-02 6:25 
Jim Crafton wrote:
would expect that foundFoo would be NULL if there is no entry for the value 3, but is that what will actually happen ?

Yes, it will happen. Check with the following function template:
template <class T>
void test(T t = T())
{
	T t2 = t;
}

...

test<char *>();
test<int>();
test<int>(5);


And put the breakpoint inside test. T() where T is simple type like pointer or int results in value initialized to zero.

Tomasz Sowinski -- http://www.shooltz.com

Free your mind and your ass will follow.

GeneralRe: STL gurus map operator [] Pin
Jim Crafton27-Aug-02 6:28
Jim Crafton27-Aug-02 6:28 
GeneralRe: STL gurus map operator [] Pin
Tomasz Sowinski27-Aug-02 6:30
Tomasz Sowinski27-Aug-02 6:30 
GeneralRe: STL gurus map operator [] Pin
Jim Crafton27-Aug-02 6:33
Jim Crafton27-Aug-02 6:33 
GeneralRe: STL gurus map operator [] Pin
Tomasz Sowinski27-Aug-02 6:41
Tomasz Sowinski27-Aug-02 6:41 
GeneralRelease Version Of Code Library Pin
SchmoBoy27-Aug-02 5:12
SchmoBoy27-Aug-02 5:12 
GeneralRe: Release Version Of Code Library Pin
Tomasz Sowinski27-Aug-02 5:20
Tomasz Sowinski27-Aug-02 5:20 
GeneralRe: Release Version Of Code Library Pin
Roger Allen27-Aug-02 6:04
Roger Allen27-Aug-02 6:04 
GeneralRe: Release Version Of Code Library Pin
Chris Losinger27-Aug-02 6:09
professionalChris Losinger27-Aug-02 6:09 
GeneralRe: Release Version Of Code Library Pin
Roger Allen27-Aug-02 6:12
Roger Allen27-Aug-02 6:12 
GeneralRe: Release Version Of Code Library Pin
Chris Losinger27-Aug-02 6:12
professionalChris Losinger27-Aug-02 6:12 
GeneralRe: Release Version Of Code Library Pin
SchmoBoy27-Aug-02 6:17
SchmoBoy27-Aug-02 6:17 
GeneralRe: Release Version Of Code Library Pin
Tomasz Sowinski27-Aug-02 6:20
Tomasz Sowinski27-Aug-02 6:20 
GeneralRe: Release Version Of Code Library Pin
SchmoBoy27-Aug-02 6:25
SchmoBoy27-Aug-02 6:25 
GeneralRe: Release Version Of Code Library Pin
Tomasz Sowinski27-Aug-02 6:28
Tomasz Sowinski27-Aug-02 6:28 
GeneralRe: Release Version Of Code Library Pin
SchmoBoy27-Aug-02 6:31
SchmoBoy27-Aug-02 6:31 
GeneralRe: Release Version Of Code Library Pin
Tomasz Sowinski27-Aug-02 6:37
Tomasz Sowinski27-Aug-02 6:37 
GeneralRe: Release Version Of Code Library (SOLUTION FOUND!!!!!) Pin
SchmoBoy27-Aug-02 7:23
SchmoBoy27-Aug-02 7:23 

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.