folly::dptr_detail::VisitorResult

Determine the result type of applying a visitor of type V on pointers of all types in Types..., asserting that the type is the same for all types in Types...

Synopsis

Declared in <folly/detail/DiscriminatedPtrDetail.h>

template<
    typename V,
    typename... Types>
struct VisitorResult;

Type Aliases

NameDescription
res The result of applying the visitor to a pointer of type T.
type The common result type across all visited types.