Replacing std::format with fmt::format

This commit is contained in:
Dynamitos
2024-01-16 19:24:49 +01:00
parent c0da7d77a1
commit 861c146b46
55 changed files with 304 additions and 186 deletions
+6 -10
View File
@@ -38,14 +38,14 @@ public:
{
return p;
}
constexpr bool operator!=(const IteratorBase &other) const
{
return p != other.p;
}
constexpr bool operator==(const IteratorBase &other) const
{
return p == other.p;
}
constexpr std::strong_ordering operator<=>(const IteratorBase &other) const
{
return p <=> other.p;
}
constexpr IteratorBase operator+(size_t other) const
{
IteratorBase tmp(*this);
@@ -61,10 +61,6 @@ public:
p+=other;
return *this;
}
constexpr bool operator<(const IteratorBase& other) const
{
return p < other.p;
}
constexpr IteratorBase operator-(difference_type diff) const
{
return IteratorBase(p - diff);
@@ -537,7 +533,7 @@ public:
assert(index < arraySize);
return _data[index];
}
constexpr const reference operator[](size_type index) const
constexpr const_reference operator[](size_type index) const
{
assert(index < arraySize);
return _data[index];
@@ -674,7 +670,7 @@ constexpr bool operator==(const Array<Type, Alloc> &lhs, const Array<Type, Alloc
template<class Type, class Alloc>
constexpr auto operator<=>(const Array<Type, Alloc>& lhs, const Array<Type, Alloc>& rhs)
{
return std::lexicographical_compare_three_way(lhs.begin(), lhs.end(), rhs.begin(), rhs.end());
return std::lexicographical_compare(lhs.begin(), lhs.end(), rhs.begin(), rhs.end());
}
template <typename T, size_t N>