File: test-clang17-stdlibcpp-map.cc

package info (click to toggle)
ns3 3.46-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 105,864 kB
  • sloc: cpp: 624,863; python: 14,863; ansic: 6,772; makefile: 1,950; sh: 987; javascript: 167; perl: 102
file content (12 lines) | stat: -rw-r--r-- 206 bytes parent folder | download
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;
}