Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-01-31 14:52:01

From: "Jason Stewart" <res0054p_at_[hidden]>
> I'm saying, the basic less<pathname> does simple, non-case sensitive,
> string comparison simply so that they work out of the box with std::map.
> looks like this was the decision used for shared_ptr. What does less on a
> pointer mean except to arrange in order of memory? Is this useful? In my
> mind, only in that it allows use with std::map. (Or, maybe I misunderstood
> less<shared_ptr>, does it use less<contained_type>?)

You got it right, its only purpose is to allow shared_ptr's as map keys.

About the original thread: isn't std::string sufficient as a "pathname

Boost list run by bdawes at, gregod at, cpdaniel at, john at