absl::SetFlag

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

NameDescription
flagThe flag to update.
vThe new value to assign to flag, convertible to T.