Returns a functor that dereferences whatever is passed to it.
Works for smart and raw pointers, as well as std::optional. Do not use it with containers holding elements that cannot be dereferenced, such as null pointers. The reference stays valid for the duration of the program.
A const reference to the shared deref functor.