标签:http io ar sp for on cti bs ef
template < class Key, // map::key_type class T, // map::mapped_type class Compare = less<Key>, // map::key_compare class Alloc = allocator<pair<const Key,T> > // map::allocator_type > class map;
默认的key_comp,
key_compare key_comp() const;
Returns a copy of the comparison object used by the container to compare keys.
By default, this is a less object, which returns the same as operator<.
his object determines the order of the elements in the container: it is a function pointer or a function object that takes two arguments of the same type as the element keys, and returns true if the first argument is considered to go before the second in the strict weak ordering it defines, and false otherwise.
Two keys are considered equivalent if key_comp returns false reflexively (i.e., no matter the order in which the keys are passed as arguments).
标签:http io ar sp for on cti bs ef
原文地址:http://www.cnblogs.com/purejade/p/4122531.html