/posts/efficient-configurable-lambdas-with-constexpr-and-optional/
Efficient, configurable functions with constexpr and std::optional - Matt Bolitho