2
0
mirror of https://github.com/boostorg/hof.git synced 2026-02-01 20:42:14 +00:00
Files
hof/doc/src/function.md
2014-12-16 14:47:10 -06:00

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;
});