| AI Engine API User Guide (AIE-API) 2026.1

Loading...
Searching...
No Matches
aie::scoped_mode< T > Class Template Reference

Sets saturation/rounding mode in the current scope, restoring the existing mode upon exit. More...

## Detailed Description

template<typename T>
requires (std::is_same_v<T, rounding_mode> || std::is_same_v<T, saturation_mode>)
class aie::scoped_mode< T >

Sets saturation/rounding mode in the current scope, restoring the existing mode upon exit.

`#include <tile.hpp>`

## Public Member Functions
| scoped_mode (const scoped_mode &)=delete
| scoped_mode (const T &desired) noexcept
| scoped_mode (scoped_mode &&)=delete
| ~scoped_mode () noexcept
scoped_mode & | operator= (const scoped_mode &)=delete
scoped_mode & | operator= (scoped_mode &&)=delete

## Constructor & Destructor Documentation

## ◆ scoped_mode() [1/3]

template<typename T>

aie::scoped_mode< T >::scoped_mode | ( | const T & | desired | ) |
| inline explicit noexcept

## ◆ scoped_mode() [2/3]

template<typename T>

aie::scoped_mode< T >::scoped_mode | ( | const scoped_mode< T > & |  | ) |
| delete

## ◆ scoped_mode() [3/3]

template<typename T>

aie::scoped_mode< T >::scoped_mode | ( | scoped_mode< T > && |  | ) |
| delete

## ◆ ~scoped_mode()

template<typename T>

aie::scoped_mode< T >::~scoped_mode | ( |  | ) |
| inline noexcept

## Member Function Documentation

## ◆ operator=() [1/2]

template<typename T>

scoped_mode & aie::scoped_mode< T >::operator= | ( | const scoped_mode< T > & |  | ) |
| delete

## ◆ operator=() [2/2]

template<typename T>

scoped_mode & aie::scoped_mode< T >::operator= | ( | scoped_mode< T > && |  | ) |
| delete

The documentation for this class was generated from the following file:

- tile.hpp