Our small_function type is a non-owning reference to an existing function, contrary to small_vector and small_string which are owning. This difference would be better conveyed with the function_ref name, which matches the future std::function_ref from C++26 and existing third-party implementations. Our API is not strictly identical, but very close. Migrating to the std version should be possible in the future.
Our
small_function
type is a non-owning reference to an existing function, contrary tosmall_vector
andsmall_string
which are owning. This difference would be better conveyed with thefunction_ref
name, which matches the futurestd::function_ref
from C++26 and existing third-party implementations. Our API is not strictly identical, but very close. Migrating to thestd
version should be possible in the future.