CppNCorr
C++ ncorr Digital Image Correlation engine
Loading...
Searching...
No Matches
ncorr::log::Voidify Class Reference

Helper that turns the conditional logging expression back into a void statement (glog idiom). More...

#include <log.h>

Public Member Functions

 Voidify ()=default
 
void operator& (Stream &)
 

Detailed Description

Helper that turns the conditional logging expression back into a void statement (glog idiom).

operator& has lower precedence than << but higher than ?:, so the macro is safe inside an unbraced if/else.

Definition at line 144 of file log.h.

Constructor & Destructor Documentation

◆ Voidify()

ncorr::log::Voidify::Voidify ( )
default

Member Function Documentation

◆ operator&()

void ncorr::log::Voidify::operator& ( Stream )
inline

Definition at line 147 of file log.h.


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