std::experimental::simd_abi::scalar

From cppreference.com
< cpplrm; | experimentallrm; | simd
Technical specifications
Filesystem library (filesystem TS)
Library fundamentals (library fundamentals TS)
Library fundamentals 2 (library fundamentals 2 TS)
Extensions for parallelism (parallelism TS)
Extensions for parallelism 2 (parallelism TS v2)
Extensions for concurrency (concurrency TS)
Concepts (concepts TS)
Ranges (ranges TS)
Special mathematical functions (special math TR)
Defined in header <experimental/simd>
namespace simd_abi {

struct scalar {};

}

The scalar tag type ensures data-parallel types to store a single element (i.e., simd<T, simd_abi::scalar>::size() returns 1).

Notes

scalar is not an alias to fixed_size<1>.

See also