Overload of SetFlag() to allow callers to pass in a value that is convertible to T. E.g., use this overload to pass a "const char*" when T is std::string.

Synopsis

Declared in <absl/flags/flag.h>

template<
    typename T,
    typename V>
void
SetFlag(
    absl::Flag<T>* flag,
    V const& v);

Parameters

Name

Description

flag

The flag to update.

v

The new value to assign to flag, convertible to T.

Created with MrDocs