Skip to content

Commit 6a65aad

Browse files
committed
P1023R0 constexpr comparison operators for std::array
1 parent 591545d commit 6a65aad

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/containers.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2934,17 +2934,17 @@
29342934
template<class T, size_t N> struct array;
29352935

29362936
template<class T, size_t N>
2937-
bool operator==(const array<T, N>& x, const array<T, N>& y);
2937+
constexpr bool operator==(const array<T, N>& x, const array<T, N>& y);
29382938
template<class T, size_t N>
2939-
bool operator!=(const array<T, N>& x, const array<T, N>& y);
2939+
constexpr bool operator!=(const array<T, N>& x, const array<T, N>& y);
29402940
template<class T, size_t N>
2941-
bool operator< (const array<T, N>& x, const array<T, N>& y);
2941+
constexpr bool operator< (const array<T, N>& x, const array<T, N>& y);
29422942
template<class T, size_t N>
2943-
bool operator> (const array<T, N>& x, const array<T, N>& y);
2943+
constexpr bool operator> (const array<T, N>& x, const array<T, N>& y);
29442944
template<class T, size_t N>
2945-
bool operator<=(const array<T, N>& x, const array<T, N>& y);
2945+
constexpr bool operator<=(const array<T, N>& x, const array<T, N>& y);
29462946
template<class T, size_t N>
2947-
bool operator>=(const array<T, N>& x, const array<T, N>& y);
2947+
constexpr bool operator>=(const array<T, N>& x, const array<T, N>& y);
29482948
template<class T, size_t N>
29492949
void swap(array<T, N>& x, array<T, N>& y) noexcept(noexcept(x.swap(y)));
29502950

0 commit comments

Comments
 (0)