std::experi...::is_abi_tag(3)
π std::experi...::is_abi_tag(3) π
okay so bestie, this page is from the C++ Standard Libary (their spelling, not mine, iykyk π) and the manual page name is std::experi...::is_abi_tag(3). we're talking about std::experimental::is_abi_tag, and it's literally the main character of this page. periodt. π
β¨ NAME β¨
std::experimental::is_abi_tagβstd::experimental::is_abi_tag. yeah, it's giving self-titled debut album π .
πΈ Synopsis πΈ
Defined in header <experimental/simd>
template< class T > (parallelism TS v2)
struct is_abi_tag;
lowkey the whole vibe: if T is an ABI tag in the simd_abi namespace, then it provides the member constant value equal true. for any other type, value is false. no cap. β¨
π§© Template parameters π§©
Tβ a type to check. that's the whole parameter, bestie.
π Helper variable template π
template< class T >
(parallelism TS v2)
inline constexpr bool is_abi_tag_v = is_abi_tag<T>::value;
yup, it's a helper variable template, and it's inline constexpr, slay. π
π Inherited from std::integral_constant π
this thing is inherited from std::integral_constant, so it gets all that inherited energy. here's the breakdown:
π Member constants π
valueβtrueifTis an ABI tag type,falseotherwise.[static](public static member constant)β¨
π«Ά Member functions π«Ά
operator boolβ converts the object tobool, returnsvalue.(public member function)operator()β returnsvalue.(C++14)(public member function)
π Member types π
value_typeβbooltypeβstd::integral_constant<bool, value>
π₯ Example π₯
// Run this code
#include <experimental/simd>
#include <iostream>
int main()
{
namespace stdx = std::experimental;
std::cout << std::boolalpha
<< stdx::is_abi_tag_v<stdx::simd_abi::scalar> << '\n'
<< stdx::is_abi_tag_v<int> << '\n';
}
π Output π
true
false
π¦ See also π¦
is_simd_flag_typeβ checks if a type is a simd flag type.(parallelism TS v2)(class template)π¦
πΈ that's the whole page, bestie! source:cppreference.comΒ· version/date:2024.06.10Β· page:std::experi...::is_abi_tag(3)πΈ
π¦ 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