folly::unsafe_unscoped_init

Initializes folly without an RAII scope guard.

Synopses

Declared in <folly/init/Init.h>

Initializes folly without an RAII scope guard.

void
unsafe_unscoped_init(
    int* argc,
    char*** argv,
    InitOptions options);
» more...

Initializes folly without an RAII scope guard.

void
unsafe_unscoped_init(
    int* argc,
    char*** argv,
    bool removeFlags = true);
» more...

Parameters

NameDescription
argcPointer to the argument count passed to main.
argvPointer to the argument vector passed to main.
optionsInitialization options.
removeFlagsIf true, updates argc/argv to remove recognized gflags.