std::money_get<CharT,InputIt>:: ~money_get
From cppreference.net
C++
Text processing library
| Localization library | |||||||||||||||||||||||||
| Regular expressions library (C++11) | |||||||||||||||||||||||||
| Formatting library (C++20) | |||||||||||||||||||||||||
| Null-terminated sequence utilities | |||||||||||||||||||||||||
| Byte strings | |||||||||||||||||||||||||
| Multibyte strings | |||||||||||||||||||||||||
| Wide strings | |||||||||||||||||||||||||
| Primitive numeric conversions | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
| Text encoding identifications | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
Localization library
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::money_get
| Member functions | ||||
|
money_get::~money_get
|
||||
|
ヘッダーで定義
<locale>
|
||
|
protected
:
~money_get
(
)
;
|
||
std:: money_get ファセットを破棄します。このデストラクタは protected かつ仮想関数です( 基底クラス のデストラクタが仮想関数であるため)。 std:: money_get 型のオブジェクトは、ほとんどのファセットと同様に、このファセットを実装する最後の std::locale オブジェクトがスコープ外になる時、またはユーザー定義クラスが std:: money_get から派生して public デストラクタを実装している場合にのみ破棄できます。
例
このコードを実行
#include <iostream> #include <locale> struct Destructible_money_get : public std::money_get<wchar_t> { Destructible_money_get(std::size_t refs = 0) : money_get(refs) {} // 注: 暗黙のデストラクタはpublic }; int main() { Destructible_money_get dc; // std::money_get<wchar_t> c; // コンパイルエラー: protectedデストラクタ }