FleCSI User API Version: 2.3.0
 
Loading...
Searching...
No Matches
trace::guard Struct Reference

RAII guard for executing a trace. More...

Public Member Functions

 guard (guard &&)=delete
 Immovable.
 
 guard (trace &t_)
 Start a trace.
 

Detailed Description

RAII guard for executing a trace.

Flog output is deferred to the end of the trace as needed.

Constructor & Destructor Documentation

◆ guard() [1/2]

guard ( guard &&  )
delete

Immovable.

◆ guard() [2/2]

guard ( trace t_)
explicit

Start a trace.

Required in certain contexts like use of std::optional; otherwise prefer trace::make_guard.