std::experi...ask::copy_to(3)
π NAME π
okay bestie, this is std::experimental::simd_mask::copy_to β the simd_mask copy_to, from the C++ Standard Libary manual (yes, the header spells it like that, I'm just the messenger π). The page is the std::experi...ask::copy_to(3) one, and the name is literally std::experimental::simd_mask::copy_to. That's the whole NAME section, no notes. π
πΈ Synopsis πΈ
template<class Flags> (parallelism TS v2)
void copy_to( bool* mem, Flags flags );
So yeah, it's a template with a Flags parameter, and it's tagged parallelism TS v2. Slay. β¨
The store function copies all elements of a simd_mask such that the i-th element is written to mem[i] for all i in the range of [0, size()). That's the whole job, bestie β very "copy the mask, mind the range" energy. π«Ά
π§ Parameters π§
memβ a pointer into an array where[mem, mem + size())is a valid range.flagsβ if it's of typevector_aligned_tag, the load constructor may assumememto point to storage aligned bymemory_alignment_v<simd_mask>.
β Type requirements β
is_simd_flag_type_v<Flags>must be true.
no cap, that requirement is non-negotiable β it literally has to be true. π
π See also π
element_aligned_tagβ flag indicating alignment of the load/store address to element alignment;element_aligned(parallelism TS v2) (class)vector_aligned_tagβ flag indicating alignment of the load/store address to vector alignment;vector_aligned(parallelism TS v2) (class)overaligned_tagβ flag indicating alignment of the load/store address to the specified alignment;overaligned(parallelism TS v2) (class template)memory_alignmentβ obtains an appropriate alignment forvector_aligned(parallelism TS v2) (class template)copy_fromβ loadssimd_maskelements from contiguous memory (parallelism TS v2) (public member function)
πΈ that's a wrap, bestie β source is http://cppreference.com, dated 2024.06.10, and the footer page is std::experi...ask::copy_to(3). go be aligned πβ¨
π¦ 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