[#util-TranslatedLiteral-2constructor]
= xref:util.adoc[util]::xref:util/TranslatedLiteral.adoc[TranslatedLiteral]::TranslatedLiteral
:relfileprefix: ../../
:mrdocs:

Capture a string literal and the translation function to use for it&period;

== Synopsis

Declared in `&lt;util&sol;translation&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
consteval
TranslatedLiteral(
    char const* str,
    xref:TranslateFn.adoc[TranslateFn] const* fn = &amp;G&lowbar;TRANSLATION&lowbar;FUN);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *str*
| The untranslated literal text (must not be null)&period;
| *fn*
| The translation function to apply, defaulting to the global one&period;
|===


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