FleCSI User API Version: 2.3.0
 
Loading...
Searching...
No Matches
rguard< reg > Class Template Reference

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

Public Member Functions

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

Detailed Description

template<class reg>
class flecsi::util::annotation::rguard< reg >

Scope guard for marking a code region.

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

Template Parameters
regcode region to tag (type inherits from annotation::region)

Constructor & Destructor Documentation

◆ rguard()

template<class reg >
template<class... Arg>
rguard ( Arg &&...  a)

Create a guard.

Parameters
aan optional task name as a std::string_view