SUNphi  1.0
ScopeDoer.hpp File Reference

Scope-based action. More...

#include <utility>

Go to the source code of this file.

Classes

class  SUNphi::ScopeDoer< FEnd >
 

Functions

template<typename T , typename TV >
auto SUNphi::getScopeChangeVar (T &ref, const TV &val)
 Set a variable for the scope, change it back at the end. More...
 

Detailed Description

Scope-based action.

Definition in file ScopeDoer.hpp.

Function Documentation

template<typename T , typename TV >
auto SUNphi::getScopeChangeVar ( T &  ref,
const TV &  val 
)

Set a variable for the scope, change it back at the end.

Old value

Parameters
refReference
valValue to set

Definition at line 78 of file ScopeDoer.hpp.