Modified global operators.

This commit is contained in:
John Wellbelove 2016-06-11 11:15:30 +01:00
parent ea3132caa0
commit 5b2ea0f0c6
6 changed files with 18 additions and 18 deletions

View File

@ -1015,7 +1015,7 @@ bool operator <(const etl::iforward_list<T>& lhs, const etl::iforward_list<T>& r
template <typename T>
bool operator >(const etl::iforward_list<T>& lhs, const etl::iforward_list<T>& rhs)
{
return operator <(rhs, lhs);
return (rhs < lhs);
}
//*************************************************************************
@ -1028,7 +1028,7 @@ bool operator >(const etl::iforward_list<T>& lhs, const etl::iforward_list<T>& r
template <typename T>
bool operator <=(const etl::iforward_list<T>& lhs, const etl::iforward_list<T>& rhs)
{
return !operator >(lhs, rhs);
return !(lhs > rhs);
}
//*************************************************************************
@ -1041,7 +1041,7 @@ bool operator <=(const etl::iforward_list<T>& lhs, const etl::iforward_list<T>&
template <typename T>
bool operator >=(const etl::iforward_list<T>& lhs, const etl::iforward_list<T>& rhs)
{
return !operator <(lhs, rhs);
return !(lhs < rhs);
}
#if WIN32

View File

@ -1168,7 +1168,7 @@ bool operator <(const etl::ilist<T>& lhs, const etl::ilist<T>& rhs)
template <typename T>
bool operator >(const etl::ilist<T>& lhs, const etl::ilist<T>& rhs)
{
return operator <(rhs, lhs);
return (rhs < lhs);
}
//*************************************************************************
@ -1181,7 +1181,7 @@ bool operator >(const etl::ilist<T>& lhs, const etl::ilist<T>& rhs)
template <typename T>
bool operator <=(const etl::ilist<T>& lhs, const etl::ilist<T>& rhs)
{
return !operator >(lhs, rhs);
return !(lhs > rhs);
}
//*************************************************************************
@ -1194,7 +1194,7 @@ bool operator <=(const etl::ilist<T>& lhs, const etl::ilist<T>& rhs)
template <typename T>
bool operator >=(const etl::ilist<T>& lhs, const etl::ilist<T>& rhs)
{
return !operator <(lhs, rhs);
return !(lhs < rhs);
}
#if WIN32

View File

@ -1652,7 +1652,7 @@ bool operator <(const etl::imap<TKey, TMapped, TKeyCompare>& lhs, const etl::ima
template <typename TKey, typename TMapped, typename TKeyCompare>
bool operator >(const etl::imap<TKey, TMapped, TKeyCompare>& lhs, const etl::imap<TKey, TMapped, TKeyCompare>& rhs)
{
return operator <(rhs, lhs);
return (rhs < lhs);
}
//*************************************************************************
@ -1665,7 +1665,7 @@ bool operator >(const etl::imap<TKey, TMapped, TKeyCompare>& lhs, const etl::ima
template <typename TKey, typename TMapped, typename TKeyCompare>
bool operator <=(const etl::imap<TKey, TMapped, TKeyCompare>& lhs, const etl::imap<TKey, TMapped, TKeyCompare>& rhs)
{
return !operator >(lhs, rhs);
return !(lhs > rhs);
}
//*************************************************************************
@ -1678,7 +1678,7 @@ bool operator <=(const etl::imap<TKey, TMapped, TKeyCompare>& lhs, const etl::im
template <typename TKey, typename TMapped, typename TKeyCompare>
bool operator >=(const etl::imap<TKey, TMapped, TKeyCompare>& lhs, const etl::imap<TKey, TMapped, TKeyCompare>& rhs)
{
return !operator <(lhs, rhs);
return !(lhs < rhs);
}
#if WIN32

View File

@ -1385,7 +1385,7 @@ bool operator <(const etl::imultimap<TKey, TMapped, TKeyCompare>& lhs, const etl
template <typename TKey, typename TMapped, typename TKeyCompare>
bool operator >(const etl::imultimap<TKey, TMapped, TKeyCompare>& lhs, const etl::imultimap<TKey, TMapped, TKeyCompare>& rhs)
{
return operator <(rhs, lhs);
return (rhs < lhs);
}
//*************************************************************************
@ -1398,7 +1398,7 @@ bool operator >(const etl::imultimap<TKey, TMapped, TKeyCompare>& lhs, const etl
template <typename TKey, typename TMapped, typename TKeyCompare>
bool operator <=(const etl::imultimap<TKey, TMapped, TKeyCompare>& lhs, const etl::imultimap<TKey, TMapped, TKeyCompare>& rhs)
{
return !operator >(lhs, rhs);
return !(lhs > rhs);
}
//*************************************************************************
@ -1411,7 +1411,7 @@ bool operator <=(const etl::imultimap<TKey, TMapped, TKeyCompare>& lhs, const et
template <typename TKey, typename TMapped, typename TKeyCompare>
bool operator >=(const etl::imultimap<TKey, TMapped, TKeyCompare>& lhs, const etl::imultimap<TKey, TMapped, TKeyCompare>& rhs)
{
return !operator <(lhs, rhs);
return !(lhs < rhs);
}
#if WIN32

View File

@ -1366,7 +1366,7 @@ bool operator <(const etl::imultiset<T, TCompare>& lhs, const etl::imultiset<T,
template <typename T, typename TCompare>
bool operator >(const etl::imultiset<T, TCompare>& lhs, const etl::imultiset<T, TCompare>& rhs)
{
return operator <(rhs, lhs);
return (rhs < lhs);
}
//*************************************************************************
@ -1379,7 +1379,7 @@ bool operator >(const etl::imultiset<T, TCompare>& lhs, const etl::imultiset<T,
template <typename T, typename TCompare>
bool operator <=(const etl::imultiset<T, TCompare>& lhs, const etl::imultiset<T, TCompare>& rhs)
{
return !operator >(lhs, rhs);
return !(lhs > rhs);
}
//*************************************************************************
@ -1392,7 +1392,7 @@ bool operator <=(const etl::imultiset<T, TCompare>& lhs, const etl::imultiset<T,
template <typename T, typename TCompare>
bool operator >=(const etl::imultiset<T, TCompare>& lhs, const etl::imultiset<T, TCompare>& rhs)
{
return !operator <(lhs, rhs);
return !(lhs < rhs);
}
#if WIN32

View File

@ -1583,7 +1583,7 @@ bool operator <(const etl::iset<T, TCompare>& lhs, const etl::iset<T, TCompare>&
template <typename T, typename TCompare>
bool operator >(const etl::iset<T, TCompare>& lhs, const etl::iset<T, TCompare>& rhs)
{
return operator <(rhs, lhs);
return (rhs < lhs);
}
//*************************************************************************
@ -1596,7 +1596,7 @@ bool operator >(const etl::iset<T, TCompare>& lhs, const etl::iset<T, TCompare>&
template <typename T, typename TCompare>
bool operator <=(const etl::iset<T, TCompare>& lhs, const etl::iset<T, TCompare>& rhs)
{
return !operator >(lhs, rhs);
return !(lhs > rhs);
}
//*************************************************************************
@ -1609,7 +1609,7 @@ bool operator <=(const etl::iset<T, TCompare>& lhs, const etl::iset<T, TCompare>
template <typename T, typename TCompare>
bool operator >=(const etl::iset<T, TCompare>& lhs, const etl::iset<T, TCompare>& rhs)
{
return !operator <(lhs, rhs);
return !(lhs < rhs);
}
#if WIN32