Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: STL gurus map operator [] Pin
_Magnus_27-Aug-02 6:02
_Magnus_27-Aug-02 6:02 
GeneralRe: STL gurus map operator [] Pin
Tomasz Sowinski27-Aug-02 6:03
Tomasz Sowinski27-Aug-02 6:03 
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 
In this case i have a map with rightbits and i think that
if(map[i] & bit)

is cleaner than
iterator it = map.find(i)
if(it != map.end())
{
   if((*it).second & bit)
}


But it might depend on what is in the map.


/Magnus


- I don't necessarily agree with everything I say
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 
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 

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.