mirror of
https://github.com/boostorg/hof.git
synced 2026-02-01 20:42:14 +00:00
323 B
323 B
FIT_STATIC_FUNCTION
Description
The FIT_STATIC_FUNCTION macro allows initializing a function object from
lambdas and adaptors at compile-time in a constexpr expression.
Example
FIT_STATIC_FUNCTION(sum) = fit::partial([](int x, int y)
{
return x + y;
});