[#absl-SetFlag-07] = xref:absl.adoc[absl]::SetFlag :relfileprefix: ../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename V> void SetFlag( xref:absl/Flag.adoc[absl::Flag<T>]* flag, V const& v); ---- == Parameters [cols="1,4"] |=== | Name| Description | *flag* | The flag to update. | *v* | The new value to assign to `flag`, convertible to `T`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#