|
Expression Templates Library (ETL)
|
RAII helper for setting the context to cpu. More...
#include <context.hpp>
Public Member Functions | |
| cpu_context () | |
| Default construct a cpu context. More... | |
| ~cpu_context () | |
| Destruct a cpu context. More... | |
| operator bool () | |
| Does nothing, simple trick for section to be nice. | |
Public Attributes | |
| bool | old_cpu |
| The previous value of cpu. | |
RAII helper for setting the context to cpu.
|
inline |
Default construct a cpu context.
This saves the previous cpu value and sets cpu to true
|
inline |
Destruct a cpu context.
This restores the cpu state
1.8.13