A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../named_req/Destructible.html below:

C++ named requirements: Destructible - cppreference.com

Specifies that an instance of the type can be destructed.

[edit] Requirements

The type T satisfies Destructible if

Given

The following expressions must be valid and have their specified effects.

Expression Post-conditions u.~T() All resources owned by u are reclaimed, no exceptions are thrown. [edit] Notes

Destructors are called implicitly at the end of object lifetime such as when leaving scope or by the delete-expression. Explicit destructor call as shown in the type requirement table is rare.

Thanks to pseudo destructor call, all scalar types meet the requirement of Destructible, while array types and reference types do not. Note that std::is_destructible allows arrays and reference types.

[edit] See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4