folly::compression::instructions::dispatch

dispatch overloads

Synopses

Declared in <folly/compression/Instructions.h>

Invokes a callable with an instance of the detected backend type.

template<class F>
decltype(f(std::declval<Default>()))
dispatch(F&& f);
» more...

Invokes a callable with an instance of the given backend type.

template<class F>
decltype(f(std::declval<Default>()))
dispatch(
    Type type,
    F&& f);
» more...

Return Value

  • The result of invoking f with the detected backend.
  • The result of invoking f with the selected backend.

Parameters

NameDescription
fThe callable to invoke with the detected backend.
typeThe backend type to dispatch on.