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

RAII helper for setting the context to serial. More...

#include <context.hpp>

Public Member Functions

 serial_context ()
 Default construct a serial context. More...
 
 ~serial_context ()
 Destruct a serial context. More...
 
 operator bool ()
 Does nothing, simple trick for section to be nice.
 

Public Attributes

bool old_serial
 The previous value of serial.
 

Detailed Description

RAII helper for setting the context to serial.

Constructor & Destructor Documentation

◆ serial_context()

etl::detail::serial_context::serial_context ( )
inline

Default construct a serial context.

This saves the previous serial value and sets serial to true

◆ ~serial_context()

etl::detail::serial_context::~serial_context ( )
inline

Destruct a serial context.

This restores the serial state


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