llvm-project
31 строка · 780.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
9// <set>
10
11// class multiset
12
13// explicit multiset(const key_compare& comp);
14
15#include <set>
16#include <cassert>
17
18#include "test_macros.h"
19#include "../../../test_compare.h"
20
21int main(int, char**)
22{
23typedef test_less<int> C;
24const std::multiset<int, C> m(C(3));
25assert(m.empty());
26assert(m.begin() == m.end());
27assert(m.key_comp() == C(3));
28assert(m.value_comp() == C(3));
29
30return 0;
31}
32