Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shambase::call_lambda Struct Reference

Execute a lambda when a call_lambda object is constructed. More...

#include <shambase/include/shambase/call_lambda.hpp>

Public Member Functions

template<class Func>
 call_lambda (Func &&f)
 Call the lambda on construction.

Detailed Description

Execute a lambda when a call_lambda object is constructed.

Useful for static initialization side effects (registering data, registering modules, etc.) without needing a named function.

Definition at line 26 of file call_lambda.hpp.

Constructor & Destructor Documentation

◆ call_lambda()

template<class Func>
shambase::call_lambda::call_lambda ( Func && f)
inlineexplicit

Call the lambda on construction.

Definition at line 30 of file call_lambda.hpp.


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