28 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9// UNSUPPORTED: c++0310 11// <map>12 13// class map14 15// mapped_type& operator[](const key_type& k);16 17// https://llvm.org/PR1654218 19#include <map>20#include <tuple>21 22int main(int, char**) {23 std::map<std::tuple<int, int>, std::size_t> m;24 m[std::make_tuple(2, 3)] = 7;25 26 return 0;27}28