Boost logo

Boost Users :

Subject: [Boost-users] [newbie-unordered_set] string example
From: Soumen (soumen78_at_[hidden])
Date: 2009-10-22 08:56:58


I'm using boost 1.35. I wanted to use boost::intrusive::unordered_set for
std::string - couldn't find an example how to do it. Can someone give a
small example?

As of now I've coded using from tr1 in following way -

typedef std::tr1::unordered_set< std::string, boost::hash< std::string > >
Hash;
Hash tbl;
tbl.insert("abcd");

bool found = tbl.find("xyz") == tbl.end() ? true : false;

Regards,
- Soumen

-- 
View this message in context: http://www.nabble.com/-newbie-unordered_set--string-example-tp26009431p26009431.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net