tmp/tmpbawl3gaq/{from.md → to.md}
RENAMED
|
@@ -1,30 +1,34 @@
|
|
| 1 |
### Header `<array>` synopsis <a id="array.syn">[[array.syn]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
#include <
|
|
|
|
| 5 |
|
| 6 |
namespace std {
|
| 7 |
// [array], class template array
|
| 8 |
template<class T, size_t N> struct array;
|
|
|
|
| 9 |
template<class T, size_t N>
|
| 10 |
-
bool operator==(const array<T, N>& x, const array<T, N>& y);
|
| 11 |
-
template <class T, size_t N>
|
| 12 |
-
bool operator!=(const array<T, N>& x, const array<T, N>& y);
|
| 13 |
-
template <class T, size_t N>
|
| 14 |
-
bool operator< (const array<T, N>& x, const array<T, N>& y);
|
| 15 |
template<class T, size_t N>
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
| 17 |
template<class T, size_t N>
|
| 18 |
-
|
|
|
|
|
|
|
| 19 |
template<class T, size_t N>
|
| 20 |
-
|
| 21 |
template<class T, size_t N>
|
| 22 |
-
|
| 23 |
|
| 24 |
-
|
| 25 |
-
template
|
|
|
|
| 26 |
template<class T, size_t N>
|
| 27 |
struct tuple_size<array<T, N>>;
|
| 28 |
template<size_t I, class T, size_t N>
|
| 29 |
struct tuple_element<I, array<T, N>>;
|
| 30 |
template<size_t I, class T, size_t N>
|
|
|
|
| 1 |
### Header `<array>` synopsis <a id="array.syn">[[array.syn]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
#include <compare> // see [compare.syn]
|
| 5 |
+
#include <initializer_list> // see [initializer.list.syn]
|
| 6 |
|
| 7 |
namespace std {
|
| 8 |
// [array], class template array
|
| 9 |
template<class T, size_t N> struct array;
|
| 10 |
+
|
| 11 |
template<class T, size_t N>
|
| 12 |
+
constexpr bool operator==(const array<T, N>& x, const array<T, N>& y);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
template<class T, size_t N>
|
| 14 |
+
constexpr synth-three-way-result<T>
|
| 15 |
+
operator<=>(const array<T, N>& x, const array<T, N>& y);
|
| 16 |
+
|
| 17 |
+
// [array.special], specialized algorithms
|
| 18 |
template<class T, size_t N>
|
| 19 |
+
constexpr void swap(array<T, N>& x, array<T, N>& y) noexcept(noexcept(x.swap(y)));
|
| 20 |
+
|
| 21 |
+
// [array.creation], array creation functions
|
| 22 |
template<class T, size_t N>
|
| 23 |
+
constexpr array<remove_cv_t<T>, N> to_array(T (&a)[N]);
|
| 24 |
template<class T, size_t N>
|
| 25 |
+
constexpr array<remove_cv_t<T>, N> to_array(T (&&a)[N]);
|
| 26 |
|
| 27 |
+
// [array.tuple], tuple interface
|
| 28 |
+
template<class T> struct tuple_size;
|
| 29 |
+
template<size_t I, class T> struct tuple_element;
|
| 30 |
template<class T, size_t N>
|
| 31 |
struct tuple_size<array<T, N>>;
|
| 32 |
template<size_t I, class T, size_t N>
|
| 33 |
struct tuple_element<I, array<T, N>>;
|
| 34 |
template<size_t I, class T, size_t N>
|