std::experimental::void_t(3)
π NAME π
okay so bestie, welcome to std::experimental::void_t(3) in the C++ Standard Libary manual (yes, Libary, iconic typo energy, we move). this page is literally about std::experimental::void_t β that's the name, that's the vibe, no cap.
β¨ Synopsis β¨
so here's the setup: it's defined in header <experimental/type_traits>, and the synopsis is giving very much template metaprogramming main character energy:
template< class... > (library fundamentals TS v2)
using void_t = void;
it's a utility metafunction that maps a sequence of any types to the type void. that's the whole flex. π
π Notes π
this utility metafunction is used in template metaprogramming to detect ill-formed types in SFINAE context. yes bestie, SFINAE, we're in the template trenches now π
first voted into C++17 as std::void_t, it was later added as well to the library fundamentals TS as std::experimental::void_t, because it is a dependency of the detection idiom and the LFTS v2 is based on C++14. periodt. π«Ά
π See also π
void_tβ void variadic alias template(C++17)(alias template)β¨
mwah π that's the whole page, bestie! this gem came from http://cppreference.com, dated 2024.06.10, and the footer says std::experimental::void_t(3) β now go slay some templates ππ
π¦ 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