GEOSX
Public Member Functions | List of all members
LvArray::system::FloatingPointExceptionGuard Class Reference

Changes the floating point environment and reverts it when destoyed. More...

#include <system.hpp>

Public Member Functions

 FloatingPointExceptionGuard (int const exceptions=getDefaultFloatingPointExceptions())
 Disable the floating point exceptions given by exceptions. More...
 
 ~FloatingPointExceptionGuard ()
 Re-enable the floating point exceptions that were active on construction.
 

Detailed Description

Changes the floating point environment and reverts it when destoyed.

Definition at line 124 of file system.hpp.

Constructor & Destructor Documentation

◆ FloatingPointExceptionGuard()

LvArray::system::FloatingPointExceptionGuard::FloatingPointExceptionGuard ( int const  exceptions = getDefaultFloatingPointExceptions())
inline

Disable the floating point exceptions given by exceptions.

Parameters
exceptionsThe floating point exceptions to disable.

Definition at line 131 of file system.hpp.


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