File: test-clang17-stdlibcpp-map.cc

package info (click to toggle)
ns3 3.47-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 106,848 kB
  • sloc: cpp: 633,577; python: 15,491; ansic: 6,773; makefile: 1,959; sh: 1,021; pascal: 632; javascript: 167; perl: 102
file content (12 lines) | stat: -rw-r--r-- 206 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>
#include <map>
#include <tuple>

int
main()
{
    std::map<std::tuple<int, int>, int> testMap;
    testMap[{1, 1}] = 2;
    std::cout << testMap.at({1, 1}) << std::endl;
    return 0;
}