DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::detail::TempAssignGuard< T > Struct Template Reference

#include <sycl/detail/util.hpp>

Collaboration diagram for sycl::_V1::detail::TempAssignGuard< T >:

Public Member Functions

 TempAssignGuard (T &fld, T tempVal)
 
 ~TempAssignGuard ()
 

Public Attributes

T & field
 
restoreValue
 

Detailed Description

template<typename T>
struct sycl::_V1::detail::TempAssignGuard< T >

Definition at line 39 of file util.hpp.

Constructor & Destructor Documentation

◆ TempAssignGuard()

template<typename T >
sycl::_V1::detail::TempAssignGuard< T >::TempAssignGuard ( T &  fld,
tempVal 
)
inline

Definition at line 42 of file util.hpp.

References sycl::_V1::detail::TempAssignGuard< T >::field.

◆ ~TempAssignGuard()

Member Data Documentation

◆ field

◆ restoreValue

template<typename T >
T sycl::_V1::detail::TempAssignGuard< T >::restoreValue

Definition at line 41 of file util.hpp.

Referenced by sycl::_V1::detail::TempAssignGuard< T >::~TempAssignGuard().


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