Re: Does boost have something like small_function (with customizable buffer size)?

Ivan Matek via Boost-users <[email protected]>
Newsgroups gmane.comp.lib.boost.user
Message-ID <CAB=+0+NbRskEW0=oRPss7VyCHkuySX0yJxNNidEc_ypXF44jKA@mail.gmail.com>
On Wed, Feb 16, 2022 at 8:37 AM Julien Blanc <[email protected]> wrote:

> AFAIK it does not (if, by small_function, you mean a trivially copyable
> general function object).
>
It does not need to be trivially copyable, I just want to specify(64.128 or
1701) bytes of stack space (as template argument) to use before using heap,
similar as LLVM has for some types, but not for std::function
https://llvm.org/doxygen/classllvm_1_1SmallString.html

_______________________________________________
Boost-users mailing list
[email protected]
https://lists.boost.org/mailman/listinfo.cgi/boost-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.