Small format changes

This commit is contained in:
John Wellbelove 2024-07-18 10:17:26 +01:00
parent 752617ab4c
commit 6a8d183797
2 changed files with 10 additions and 5 deletions

View File

@ -938,7 +938,7 @@ namespace etl
}
//*******************************************
/// Equivalence operator.
/// Equivalence operators.
//*******************************************
template <typename TValue, typename TError, typename TValue2, typename TError2>
ETL_CONSTEXPR14
@ -955,6 +955,7 @@ bool operator ==(const etl::expected<TValue, TError>& lhs, const etl::expected<T
return lhs.error() == rhs.error();
}
//*******************************************
template <typename TValue, typename TError, typename TValue2>
ETL_CONSTEXPR14
bool operator ==(const etl::expected<TValue, TError>& lhs, const TValue2& rhs)
@ -966,6 +967,7 @@ bool operator ==(const etl::expected<TValue, TError>& lhs, const TValue2& rhs)
return lhs.value() == rhs;
}
//*******************************************
template <typename TValue, typename TError, typename TError2>
ETL_CONSTEXPR14
bool operator ==(const etl::expected<TValue, TError>& lhs, const etl::unexpected<TError2>& rhs)
@ -977,6 +979,7 @@ bool operator ==(const etl::expected<TValue, TError>& lhs, const etl::unexpected
return lhs.error() == rhs;
}
//*******************************************
template <typename TError, typename TError2>
ETL_CONSTEXPR14
bool operator ==(const etl::unexpected<TError>& lhs, const etl::unexpected<TError2>& rhs)
@ -984,6 +987,7 @@ bool operator ==(const etl::unexpected<TError>& lhs, const etl::unexpected<TErro
return lhs.error() == rhs.error();
}
//*******************************************
template <typename TValue, typename TError, typename TValue2, typename TError2>
ETL_CONSTEXPR14
bool operator !=(const etl::expected<TValue, TError>& lhs, const etl::expected<TValue2, TError2>& rhs)
@ -991,6 +995,7 @@ bool operator !=(const etl::expected<TValue, TError>& lhs, const etl::expected<T
return !(lhs == rhs);
}
//*******************************************
template <typename TValue, typename TError, typename TValue2>
ETL_CONSTEXPR14
bool operator !=(const etl::expected<TValue, TError>& lhs, const TValue2& rhs)
@ -998,6 +1003,7 @@ bool operator !=(const etl::expected<TValue, TError>& lhs, const TValue2& rhs)
return !(lhs == rhs);
}
//*******************************************
template <typename TValue, typename TError, typename TError2>
ETL_CONSTEXPR14
bool operator !=(const etl::expected<TValue, TError>& lhs, const etl::unexpected<TError2>& rhs)
@ -1005,6 +1011,7 @@ bool operator !=(const etl::expected<TValue, TError>& lhs, const etl::unexpected
return !(lhs == rhs);
}
//*******************************************
template <typename TError, typename TError2>
ETL_CONSTEXPR14
bool operator !=(const etl::unexpected<TError>& lhs, const etl::unexpected<TError2>& rhs)

View File

@ -40,14 +40,12 @@ SOFTWARE.
#include <numeric>
#include <stdint.h>
#include <vector>
#include <memory>
namespace
{
typedef std::string non_trivial_t;
typedef uint32_t trivial_t;
typedef std::string non_trivial_t;
typedef uint32_t trivial_t;
typedef TestDataM<int> moveable_t;
const size_t SIZE = 10UL;