t be functions which, when given an object, retrieve the appropriate member from it.</p>
<p>There are several ways of providing the <code>accessors</code> method, some of which are more flexible and others which are more convenient. First, one can define it through tag-dispatching, as usual. </p><div class="fragment"><div class="line"><span class="keyword">struct </span>Person {</div><div class="line">    std::string name;</div><div class="line">    <span class="keywordtype">int</span> age;</div><div class=