FleCSI User API Version: 2.3.0
 
Loading...
Searching...
No Matches
guard< ctx, severity > Class Template Reference

Scope guard for marking a code region. More...

Public Member Functions

template<class Arg >
 guard (Arg &&a)
 Create a guard.
 

Detailed Description

template<class ctx, detail severity>
class flecsi::util::annotation::guard< ctx, severity >

Scope guard for marking a code region.

This type is used to mark a runtime named code region based on the lifetime of the guard.

Template Parameters
ctxannotation context for named code region.
severitydetail level to use for code region.

Constructor & Destructor Documentation

◆ guard()

template<class ctx , detail severity>
template<class Arg >
guard ( Arg &&  a)

Create a guard.

Parameters
aregion name as a std::string or const char*