[#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`&period; E&period;g&period;, use this overload to pass a &quot;const char&ast;&quot; when `T` is `std&colon;&colon;string`&period;

== Synopsis

Declared in `&lt;absl&sol;flags&sol;flag&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename T,
    typename V&gt;
void
SetFlag(
    xref:absl/Flag.adoc[absl::Flag&lt;T&gt;]* flag,
    V const& v);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *flag*
| The flag to update&period;
| *v*
| The new value to assign to `flag`, convertible to `T`&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
