[#absl-void_t]
= xref:absl.adoc[absl]::void&lowbar;t
:relfileprefix: ../
:mrdocs:

Ignores the type of any its arguments and returns `void`&period; In general, this metafunction allows you to create a general case that maps to `void` while allowing specializations that map to specific types&period;

== Synopsis

Declared in `&lt;absl&sol;meta&sol;type&lowbar;traits&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename&period;&period;&period; Ts&gt;
using void&lowbar;t &lsqb;&lsqb;deprecated(&quot;Use std&colon;&colon;void&lowbar;t instead&period;&quot;)&rsqb;&rsqb; = &sol;&ast; implementation-defined &ast;&sol;::type;
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]: Use std&colon;&colon;void&lowbar;t instead&period;. Use of this entity is allowed but discouraged.
====
== Description

This metafunction is a workaround for some implementations of `std&colon;&colon;void&lowbar;t` that evaluate to `void` prematurely, causing partial specializations to appear duplicated (and thus invalid) to the compiler prior to substitution taking place&period; Whenever possible, use `std&colon;&colon;void&lowbar;t` instead&period;


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