Skip to content

ext::detail::scope_guard::callback

More...

#include <scope_guard.h>

Public Functions

Name
template <typename Fn_ ,typename... Args_,std::enable_if_t< std::is_constructible_v< Fn, Fn_ > &&(std::is_constructible_v< Args, Args_ > &&...), int > =0> <br>callback(Fn_ && fn, Args_ &&... args)
template <typename Fn_ =Fn> <br>autooperator()()

Detailed Description

cpp
template <typename Fn ,
typename... Args>
class ext::detail::scope_guard::callback;

Public Functions Documentation

function callback

cpp
template <typename Fn_ ,
typename... Args_,
std::enable_if_t< std::is_constructible_v< Fn, Fn_ > &&(std::is_constructible_v< Args, Args_ > &&...), int >  =0>
inline explicit callback(
    Fn_ && fn,
    Args_ &&... args
)

function operator()

cpp
template <typename Fn_  =Fn>
inline auto operator()()

Updated on 2026-01-09 at 21:59:12 +0000