Expression Templates Library (ETL)
Public Member Functions | Public Attributes | List of all members
etl::detail::cpu_context Struct Reference

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.
 

Detailed Description

RAII helper for setting the context to cpu.

Constructor & Destructor Documentation

◆ cpu_context()

etl::detail::cpu_context::cpu_context ( )
inline

Default construct a cpu context.

This saves the previous cpu value and sets cpu to true

◆ ~cpu_context()

etl::detail::cpu_context::~cpu_context ( )
inline

Destruct a cpu context.

This restores the cpu state


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