# std::experimental::to_fixed_size, std::experimental::to_native, std::experimental::to_compatible

> C++ Atlas: `cppatlas.com/w/cpp/experimental/simd/abi_cast` | Source: https://en.cppreference.com/w/cpp/experimental/simd/abi_cast | Domain: Technical specifications

Returns a simd or simd_mask object with the same elements, but a different ABI.

## Official Specification Summary (cppreference)

```cpp
// Defined in header <experimental/simd>

template< class T, class Abi >
fixed_size_simd<T, simd_size_v<T, Abi>>
to_fixed_size( const simd<T, Abi>& v ) noexcept; // (1) (parallelism TS v2)

template< class T, class Abi >
fixed_size_simd_mask<T, simd_size_v<T, Abi>>
to_fixed_size( const simd_mask<T, Abi>& v ) noexcept; // (2) (parallelism TS v2)

template< class T, std::size_t N >
native_simd<T>
to_native( const fixed_size_simd<T, N>& v ) noexcept; // (3) (parallelism TS v2)

template< class T, std::size_t N >
native_simd_mask<T>
to_native( const fixed_size_simd_mask<T, N>>& v ) noexcept; // (4) (parallelism TS v2)

template< class T, std::size_t N >
simd<T>
to_compatible( const fixed_size_simd<T, N>& v ) noexcept; // (5) (parallelism TS v2)

template< class T, std::size_t N >
simd_mask<T>
to_compatible( const fixed_size_simd_mask<T, N>& v ) noexcept; // (6) (parallelism TS v2)
```

Returns a simd or simd_mask object with the same elements, but a different ABI.

3-6) These functions do not participate in overloading resolution unless N is the same as the size of the return type.

### Parameters

- `v` - the input simd or simd_mask object

### Return value

The simd or simd_mask object with the specified ABI.

### Example

> Note: This section is incomplete Reason: no example

---
Attribution: content from https://en.cppreference.com/w/cpp/experimental/simd/abi_cast (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.