File: grandparent_context.hpp

package info (click to toggle)
mstch 1.0.2-4
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 940 kB
  • sloc: cpp: 1,429; makefile: 4
file content (19 lines) | stat: -rw-r--r-- 635 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const auto grandparent_context_data = mstch::map{
  {"grand_parent_id", std::string{"grand_parent1"}},
  {"parent_contexts", mstch::array{
    mstch::map{
      {"parent_id", std::string{"parent1"}},
      {"child_contexts", mstch::array{
        mstch::map{{"child_id", std::string{"parent1-child1"}}},
        mstch::map{{"child_id", std::string{"parent1-child2"}}}
      }}
    },
    mstch::map{
      {"parent_id", std::string{"parent2"}},
      {"child_contexts", mstch::array{
        mstch::map{{"child_id", std::string{"parent2-child1"}}},
        mstch::map{{"child_id", std::string{"parent2-child2"}}}
      }}
    }
  }}
};