Click here to Skip to main content
15,916,692 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Insert into map without lookup Pin
valikac23-Dec-02 5:04
valikac23-Dec-02 5:04 
GeneralRe: Insert into map without lookup Pin
Stuart Dootson23-Dec-02 21:51
professionalStuart Dootson23-Dec-02 21:51 
GeneralRe: Insert into map without lookup Pin
peterchen24-Dec-02 12:12
peterchen24-Dec-02 12:12 
GeneralRe: Insert into map without lookup Pin
Jörgen Sigvardsson24-Dec-02 12:27
Jörgen Sigvardsson24-Dec-02 12:27 
GeneralRe: Insert into map without lookup Pin
Joaquín M López Muñoz26-Dec-02 21:00
Joaquín M López Muñoz26-Dec-02 21:00 
GeneralNeed help using object in ATL ActiveX EXE window services server. Pin
bahruddina22-Dec-02 17:48
bahruddina22-Dec-02 17:48 
GeneralSearch (Compare) Functor and std::pair :: STL Pin
valikac21-Dec-02 16:54
valikac21-Dec-02 16:54 
GeneralRe: Search (Compare) Functor and std::pair :: STL Pin
Joaquín M López Muñoz22-Dec-02 20:04
Joaquín M López Muñoz22-Dec-02 20:04 
#pragma warning(disable:4786)
#include <queue>
#include <string>
#include <algorithm>
 
typedef std::deque<std::pair<std::string,int> > deqStringInt;
 
struct my_search
{
  my_search(const std::string s):s(s){}
  bool operator()(const std::pair<std::string,int>& c) const
  {
    return c.first==s;
  }
private:
  std::string s;
};
 
int main(void)
{
  deqStringInt example;
  example.push_back(std::make_pair(std::string("December"), 21));
 
  std::find_if(example.begin(),example.end(),my_search("December"));
 
  return 0;
}


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: Search (Compare) Functor and std::pair :: STL Pin
valikac23-Dec-02 4:59
valikac23-Dec-02 4:59 
GeneralUnsorted Map and Multimap :: STL Pin
valikac21-Dec-02 11:08
valikac21-Dec-02 11:08 
GeneralRe: Unsorted Map and Multimap :: STL Pin
Tim Smith21-Dec-02 11:30
Tim Smith21-Dec-02 11:30 
GeneralRe: Unsorted Map and Multimap :: STL Pin
valikac21-Dec-02 11:43
valikac21-Dec-02 11:43 
GeneralRe: Unsorted Map and Multimap :: STL Pin
Christian Graus21-Dec-02 11:33
protectorChristian Graus21-Dec-02 11:33 
GeneralRe: Unsorted Map and Multimap :: STL Pin
valikac21-Dec-02 12:43
valikac21-Dec-02 12:43 
GeneralRe: Unsorted Map and Multimap :: STL Pin
Christian Graus21-Dec-02 12:46
protectorChristian Graus21-Dec-02 12:46 
GeneralRe: Unsorted Map and Multimap :: STL Pin
valikac21-Dec-02 12:50
valikac21-Dec-02 12:50 
GeneralPackaging a VC++ Software Pin
xxhimanshu21-Dec-02 1:46
xxhimanshu21-Dec-02 1:46 
GeneralRe: Packaging a VC++ Software Pin
Anatoly Ivasyuk24-Dec-02 5:57
Anatoly Ivasyuk24-Dec-02 5:57 
Generalserialize using stream. - binary Pin
magicast20-Dec-02 2:48
magicast20-Dec-02 2:48 
GeneralRe: serialize using stream. - binary Pin
AlexO20-Dec-02 4:04
AlexO20-Dec-02 4:04 
GeneralRe: serialize using stream. - binary Pin
Ben Burnett5-Jan-03 13:17
Ben Burnett5-Jan-03 13:17 
GeneralNeed help using SafeArray/VARIANT from ASP/VBScript client Pin
bahruddina19-Dec-02 16:20
bahruddina19-Dec-02 16:20 
GeneralRe: Need help using SafeArray/VARIANT from ASP/VBScript client Pin
Barry Lapthorn19-Dec-02 20:40
protectorBarry Lapthorn19-Dec-02 20:40 
GeneralRe: Need help using SafeArray/VARIANT from ASP/VBScript client Pin
AlexO20-Dec-02 3:33
AlexO20-Dec-02 3:33 
GeneralRe: Need help using SafeArray/VARIANT from ASP/VBScript client Pin
Barry Lapthorn20-Dec-02 5:59
protectorBarry Lapthorn20-Dec-02 5:59 

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.