[#BloombergLP-bslmf-Util-forward_like-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmf.adoc[bslmf]::xref:BloombergLP/bslmf/Util.adoc[Util]::forward&lowbar;like
:relfileprefix: ../../../
:mrdocs:

Forward the specified `t` argument as a non&hyphen;`const` lvalue reference when `t&lowbar;MODEL` is an lvalue reference type&period;

== Synopsis

Declared in `&lt;bslmf&lowbar;util&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class t&lowbar;MODEL,
    class t&lowbar;TYPE&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
static
t&lowbar;TYPE&
forward&lowbar;like(
    t&lowbar;TYPE&& t,
    void* = 0) noexcept
requires bsl&colon;&colon;is&lowbar;lvalue&lowbar;reference&lt;t&lowbar;MODEL&gt;&colon;&colon;value &amp;&amp;
          !bsl&colon;&colon;is&lowbar;const&lt;
            typename bsl&colon;&colon;remove&lowbar;reference&lt;t&lowbar;MODEL&gt;&colon;&colon;type&gt;&colon;&colon;value;
----

== Return Value

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====

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