Popularity
2.9
Growing
Activity
6.7
Declining
162
8
8

Description

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.

Programming language: C++
Tags: Containers     Portable     Utilities     C++14     Type Erasure    

function2 alternatives and related libraries

Based on the "Containers" category

Do you think we are missing an alternative of function2 or a related project?

Add another 'Containers' Library

function2 Recommendations

There 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++.
Recommend function2

Recently added function2 resources

Do you know of a usefull tutorial, book or news relevant to function2?
Be the first to add one!