I am familiar with the use of std::has_facet(loc) to determine whether a specific facet has been loaded into a locale.
if ( ! std::has_facet<custom_facet_t>(std::cout.getloc()) ) {
/* load facet in to locale */
}
Is there a way to get a list of all facets currently loaded? Given the nature of locales, I am fairly certain that it would violate all types of rules... but I had to ask :) .
Aucun commentaire:
Enregistrer un commentaire