Boost logo

Boost Users :

From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2008-08-31 06:56:14


Hi:
I am looking to change from std::map to boost::bimap.
I have the following defined:
std::bimap<std::bitset<6>, int, BitSetComp> DotsList;
And
boost::bimap<std::bitset<6>, int, BitSetComp>::iterator DotsIterator;
If it's needed BitsetComp is defined as:
struct BitSetComp
{
        bool operator()(const std::bitset<6>& lhs, const std::bitset<6>&
rhs) const
    {
        return lhs.to_ulong() < rhs.to_ulong();
    }
};
How do I change these definitions to use boost::bimap.
Any help apreciated.
Chers
Sean.
 

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 3401 (20080829) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.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