Home | History | Annotate | Download | only in map.access
      1 //===----------------------------------------------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 // UNSUPPORTED: c++98, c++03
     11 
     12 // <map>
     13 
     14 // class map
     15 
     16 // mapped_type& operator[](const key_type& k);
     17 
     18 // https://bugs.llvm.org/show_bug.cgi?id=16542
     19 
     20 #include <map>
     21 
     22 
     23 #include <tuple>
     24 
     25 
     26 int main()
     27 {
     28     using namespace std;
     29     map<tuple<int,int>, size_t> m;
     30     m[make_tuple(2,3)]=7;
     31 }
     32