summaryrefslogtreecommitdiff
path: root/libcxx/test/std/containers/associative/map/map.access/index_tuple.pass.cpp
blob: cf75e1ebb570f7b286fbbd58b025c409f93a47a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

// UNSUPPORTED: c++03

// <map>

// class map

// mapped_type& operator[](const key_type& k);

// https://llvm.org/PR16542

#include <map>
#include <tuple>

int main(int, char**) {
    std::map<std::tuple<int, int>, std::size_t> m;
    m[std::make_tuple(2, 3)] = 7;

    return 0;
}