std::collate<CharT>:: ~collate
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::collate
| Member functions | ||||
|
collate::~collate
|
||||
|
헤더 파일에 정의됨
<locale>
|
||
|
protected
:
~collate
(
)
;
|
||
std:: collate 패싯을 소멸합니다. 이 소멸자는 protected이며 virtual입니다( 기본 클래스 소멸자가 virtual이기 때문). std:: collate 타입의 객체는 대부분의 패싯과 마찬가지로, 이 패싯을 구현하는 마지막 std::locale 객체가 범위를 벗어나거나, 사용자 정의 클래스가 std:: collate 에서 파생되어 public 소멸자를 구현한 경우에만 소멸될 수 있습니다.
예제
이 코드 실행
#include <iostream> #include <locale> struct Destructible_collate : public std::collate<wchar_t> { Destructible_collate(std::size_t refs = 0) : collate(refs) {} // note: the implicit destructor is public }; int main() { Destructible_collate dc; // std::collate<wchar_t> c; // compile error: protected destructor }