次の方法で共有


messages::do_open

A virtual function called to open the message catalog.

virtual catalog do_open(
      const string& _Catname,
      const locale& _Loc
) const;

Parameters

  • _Catname
    The name of the catalog to be searched.

  • _Loc
    The locale being searched for in the catalog.

Return Value

It returns a value that compares less than zero on failure. Otherwise, the returned value can be used as the first argument on a later call to get.

Remarks

The protected member function tries to open a message catalog whose name is _Catname. It may make use of the locale _Loc in doing so

The return value should be used as the argument on a later call to close.

Example

See the example for open, which calls do_open.

Requirements

Header: <locale>

Namespace: std

See Also

Concepts

messages Class

messages Members