union VoidPtr

Defined at line 36 of file ../../third_party/abseil-cpp/absl/functional/internal/function_ref.h

Like a void* that can handle function pointers as well. The standard does not

allow function pointers to round-trip through void*, but void(*)() is fine.

Note: It's important that this class remains trivial and is the same size as

a pointer, since this allows the compiler to perform tail-call optimizations

when the underlying function is a callable object with a matching signature.

Public Members

const void * obj
void (*)() fun