Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

SEPPLES [Part SEPPLES]

Name: SEPPLES 2011-07-26 17:41

HASKELL

Name: Anonymous 2011-07-27 5:15


std::map<std::string, std::list<MyTypeThatHasLongName> > faggot;
//...
for (std::map<std::string, std::list<MyTypeThatHasLongName> >::iterator iter = faggot.cbegin(); iter != faggot.cend(); iter++) {
    std::pair<std::string, std::list<MyTypeThatHasLongName> >& faggot_pair = *iter;
    std::cout << "faggotry: " << faggot_pair.first << " -> " << faggot_pair.second << std::endl;
}

Name: Anonymous 2011-07-27 5:33

>>3

    std::multimap<std::string, std::list<MyTypeThatHasLongName> > faggot;
    //...
    for (std::multimap<std::string, std::list<MyTypeThatHasLongName> >::iterator iter = faggot.cbegin(); iter != faggot.cend(); iter++) {
        std::pair<std::string, std::list<MyTypeThatHasLongName> >& faggot_pair = *iter;
        std::cout << "faggotry: " << faggot_pair.first << " -> " << faggot_pair.second << std::endl;
    }

Here, I upgraded that code of yours. No need to thank me - just remember to include GPL license when distributing the modified code.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List