llvm-project
28 строк · 914.0 Байт
1//===----------------------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8// UNSUPPORTED: c++03, c++11, c++14, c++17
9
10// <map>
11
12// class map
13
14// template<class Key, class T, class Compare, class Allocator>
15// synth-three-way-result<pair<const Key, T>>
16// operator<=>(const map<Key, T, Compare, Allocator>& x,
17// const map<Key, T, Compare, Allocator>& y);
18
19#include <cassert>20#include <map>21
22#include "test_container_comparisons.h"23
24int main(int, char**) {25assert(test_ordered_map_container_spaceship<std::map>());26// `std::map` is not constexpr, so no `static_assert` test here.27return 0;28}
29