[DEV] add log of pair

This commit is contained in:
Edouard DUPIN 2017-10-02 23:30:30 +02:00
parent a06f69a714
commit 7f7d720921

View File

@ -88,4 +88,11 @@ namespace etk {
_os << ")";
return _os;
}
template<class ETK_PAIR_TYPE_1, class ETK_PAIR_TYPE_2>
bool operator< (const Pair<ETK_PAIR_TYPE_1, ETK_PAIR_TYPE_2>& _obj1, const Pair<ETK_PAIR_TYPE_1, ETK_PAIR_TYPE_2>& _obj2) {
if (_obj1.first == _obj2.first) {
return _obj1.second < _obj2.second;
}
return _obj1.first < _obj2.first;
}
};