Name

numpunct_byname class template — Facet for punctuation of numbers

Synopsis

template <typename charT>
class numpunct_byname : public numpunct<charT>
{
// This class is specialized for char and wchar_t.
public:
  typedef charT char_type;
  typedef basic_string<charT> string_type;
  explicit numpunct_byname(const char*, size_t refs = 0);
protected:
  //  . . .  Same virtual functions as in numpunct
};

The numpunct_byname class template is a facet for numeric formatting and punctuation; it uses the rules of a named locale. The numpunct_byname<char> and numpunct_byname<wchar_t> instantiations are standard.

Get C++ In a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.