title: Hierarchical data in C++
body: <p>How can I handle data in C++ like in newer dynamic languages, for example the arrays in PHP are quite neat:</p>
  
  <pre><code>$arr = array(
  
  "somedata" =&gt; "Hello, yo, me being a simple string",
  
  "somearray" =&gt; array(6 =&gt; 5, 13 =&gt; 9, "a" =&gt; 42),
  
  "simple_data_again" =&gt; 198792,
  
  );
  </code></pre>
  
  <p>I am open to all suggestions.</p>