RAJA
RAJA provides a collection of platform portability abstractions for C++ HPC applications.
Public Member Functions | List of all members
RAJA::detail::ScopedAssignment< T > Struct Template Reference

Assign a new value to an object and restore the object's previous value at the end of the current scope. More...

#include <types.hpp>

Public Member Functions

constexpr ScopedAssignment (T &val, T const &new_val)
 
constexpr ScopedAssignment (T &val, T &&new_val)
 
 ScopedAssignment (ScopedAssignment const &)=delete
 
 ScopedAssignment (ScopedAssignment &&)=delete
 
ScopedAssignmentoperator= (ScopedAssignment const &)=delete
 
ScopedAssignmentoperator= (ScopedAssignment &&)=delete
 
 ~ScopedAssignment ()
 

Detailed Description

template<typename T>
struct RAJA::detail::ScopedAssignment< T >

Assign a new value to an object and restore the object's previous value at the end of the current scope.

Constructor & Destructor Documentation

◆ ScopedAssignment() [1/4]

template<typename T >
constexpr RAJA::detail::ScopedAssignment< T >::ScopedAssignment ( T &  val,
T const &  new_val 
)
inlineconstexpr

◆ ScopedAssignment() [2/4]

template<typename T >
constexpr RAJA::detail::ScopedAssignment< T >::ScopedAssignment ( T &  val,
T &&  new_val 
)
inlineconstexpr

◆ ScopedAssignment() [3/4]

template<typename T >
RAJA::detail::ScopedAssignment< T >::ScopedAssignment ( ScopedAssignment< T > const &  )
delete

◆ ScopedAssignment() [4/4]

template<typename T >
RAJA::detail::ScopedAssignment< T >::ScopedAssignment ( ScopedAssignment< T > &&  )
delete

◆ ~ScopedAssignment()

template<typename T >
RAJA::detail::ScopedAssignment< T >::~ScopedAssignment ( )
inline

Member Function Documentation

◆ operator=() [1/2]

template<typename T >
ScopedAssignment& RAJA::detail::ScopedAssignment< T >::operator= ( ScopedAssignment< T > const &  )
delete

◆ operator=() [2/2]

template<typename T >
ScopedAssignment& RAJA::detail::ScopedAssignment< T >::operator= ( ScopedAssignment< T > &&  )
delete

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