tor&lt;char,collator_base::secondary&gt; &gt; strings;
    <span class="comment">// Now strings uses the default system locale for string comparison</span>
</pre></div><p>You can also set a specific locale or level when creating and using the <a class="el" href="structboost_1_1locale_1_1comparator.html">comparator</a> class:</p>
<div class="fragment"><pre class="fragment">    comparator&lt;char&gt; comp(some_locale,some_level);
    std::map&lt;std::string,std::string,comparator&lt;char&gt; &gt; strings(comp