snitch-org / snitch

Lightweight C++20 testing framework.
Boost Software License 1.0
257 stars 7 forks source link

Rename `small_function` to `function_ref` #112

Closed cschreib closed 11 months ago

cschreib commented 1 year ago

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.