Provides two improved implementations of std::function:
* copyable fu2::function * move-only fu2::unique_function (capable of holding move only types)
that provide many benefits and improvements over std::function:
* const, volatile and reference 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) * full allocator support in contrast of std::function which doesn’t provide support anymore * covered by unit tests and continuous integration (GCC, Clang and MSVC). * header only, just copy and include function.hpp in your project, permissive licensed under boost.
function2 alternatives and related libraries
Based on the "Containers" category
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of function2 or a related project?
function2 RecommendationsThere are no recommendations yet. Be the first to promote function2!
Have you used function2? Share your experience. Write a short recommendation and function2, you and your project will be promoted on Awesome C++.
Recently added function2 resources
Be the first to add one!