std::experi...al::nonesuch(3)
π NAME π
okay so welcome to the std::experi...al::nonesuch(3) page from the C++ Standard Libary, bestie β¨. The NAME line is std::experimental::nonesuch β std::experimental::nonesuch, and yes it's literally the same thing on both sides π. iconic behavior, no notes.
π Synopsis π
Defined in header <experimental/type_traits>
struct nonesuch {
~nonesuch() = delete;
nonesuch(nonesuch const&) = delete; (library fundamentals
TS v2)
void operator=(nonesuch const&) = delete;
};
std::experimental::nonesuch is a class type used by std::experimental::detected_t to indicate detection failure π«Ά.
nonesuch has no default constructor or initializer-list constructor, and is not an aggregate. periodt.
π Notes π
nonesuch cannot be constructed, destroyed, or copied π. that's the whole vibe: it's the "nope, detection failed" type, and it is extremely committed to being unusable in those ways π
.
π Defect reports π
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
LWG 2960β Applied to:LFTSv2- Behavior as published:
nonesuchmay be an aggregate and has an implicit conversion sequence from{} - Correct behavior: made non-aggregate and removed ICS
- Behavior as published:
mwah π β source: http://cppreference.com, version/date: 2024.06.10, and the page is std::experi...al::nonesuch(3). bye bestie π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms