std::simd::__vec_builtin_of(3cxx)
π std::simd::__vec_builtin_of π
okay bestie, welcome to section 3cxx of the manual β yes that's the manual name, it's giving "C++ standard library docs but make it fashion" β¨
πΈ NAME πΈ
std::simd::__vec_builtin_of β the concept that checks whether some type is one of those builtin vector types, with the value type and width you asked for π¦
β¨ SYNOPSIS β¨
First things first, you gotta pull in the header:
#include <vec_ops.h>
Concept definition
here's the whole vibe, verbatim, no edits, I promise π«Ά
template<typename _Tp, typename _ValueType, __simd_size_type _Width sizeof(_Tp) / sizeof(_ValueType)>
concept std::simd::__vec_builtin_of = !is_class_v<_Tp> && !is_pointer_v<_Tp> && !is_arithmetic_v<_Tp>
&& __vectorizable<_ValueType>
&& _Width >= 1 && sizeof(_Tp) / sizeof(_ValueType) == _Width
&& same_as<__vec_builtin_type_bytes<_ValueType, sizeof(_Tp)>, _Tp>
&& requires(_Tp& __v, _ValueType __x) { __v[0] = __x; }
π Detailed Description π
Constrain to any vector builtin with given value type and optional width. periodt π
like, that's literally the whole thing β __vec_builtin_of is the vibe check that a type _Tp passes when it's a builtin vector built on _ValueType, and optionally you can pin down exactly which _Width you want. so iconic. no cap. π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. (yes, a robot wrote it, and honestly? ate. π)
and that's the page, bestie!! π this little love letter came to you from libstdc++, and the manual entry is std::simd::__vec_builtin_of over in section 3cxx β go forth and constrain those vector builtins fr fr π§β¨π
π¦ where this page comes from
- ubuntu stonking: libstdc++-16-doc 16.2.0-3ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms