C++/map Stl

Discussion in 'C Programming' started by SriSravi, May 24, 2007.

  1. SriSravi

    SriSravi

    Joined:
    May 23, 2007
    Messages:
    1
    i have a map stl which goes like this::map<String, int> *l_NetworkMap

    how can i use find function for this iterator?

    map<string, int>::iterator pos= l_NetworkMap.find(string(... *)m_Msisdn));
    If i use the above,i get an error.

    Even if i use it in this manner..
    map<string, int>::iterator pos= l_NetworkMap->find(string(... *)m_Msisdn));

    iam facing a core dump problem

    Please tell me how can i use find & end with this iterator.
     
    SriSravi, May 24, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Allan Bruce

    To STL or not to STL

    Allan Bruce, Oct 16, 2003, in forum: C++
    Replies:
    41
    Views:
    1,055
    Christopher Benson-Manica
    Oct 17, 2003
  2. Marcus
    Replies:
    2
    Views:
    591
    Marcus
    Dec 9, 2005
  3. Allerdyce.John@gmail.com

    a stl map which use stl pair as the key

    Allerdyce.John@gmail.com, Feb 22, 2006, in forum: C++
    Replies:
    2
    Views:
    556
    klaus hoffmann
    Feb 22, 2006
  4. kl
    Replies:
    7
    Views:
    1,291
    James Kanze
    Jan 1, 2008
  5. Luca Risolia

    STL map to STL vector

    Luca Risolia, Jan 13, 2014, in forum: C++
    Replies:
    32
    Views:
    372
    Seungbeom Kim
    Jan 18, 2014
Loading...

Share This Page