slackbuilds/libraries/function2
Martin Bångens 7f9851ec77
libraries/function2: Added (drop-in replacement to std::function).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2022-07-02 09:42:32 +07:00
..
README
function2.SlackBuild
function2.info
slack-desc

README

function2 improved and configurable drop-in replacement header to 
std::function that supports move only types, multiple overloads
and more

benefits and improvements over std::function:

 * const, volatile, reference and noexcept correct (qualifiers are part
   of the operator() signature)
 * convertible to and from std::function as well as other callable
   types
 * adaptable through fu2::function_base (internal capacity,
   copyable and exception guarantees)
 * overloadable with an arbitrary count of signatures
   (fu2::function<bool(int), bool(float)>)
 * full allocator support in contrast to std::function, which doesn't
   provide support anymore
 * covered by many unit tests and continuous integration services
   (GCC, Clang and MSVC)
 * header only, just copy and include function.hpp in your project
 * permissively licensed under the boost license