[#bsl-enable_if-0b]
= xref:bsl.adoc[bsl]::xref:bsl/enable_if-07.adoc[enable&lowbar;if]&lt;true&gt;
:relfileprefix: ../
:mrdocs:

This `struct` template implements the `enable&lowbar;if` meta&hyphen;function defined in the C&plus;&plus;11 standard &lsqb;meta&period;trans&period;ptr&rsqb;&period; This `struct` template provides a `typedef` `type` that is an alias to the (template parameter) `t&lowbar;TYPE` if the (template parameter) `t&lowbar;COND` is `true`&semi; otherwise, `type` is not provided&period; If `t&lowbar;TYPE` is not specified, it is set to `void`&period; Note that this generic default template provides `type` for when `t&lowbar;COND` is `true`&semi; a template specialization is provided (below) that omits `type` for when `t&lowbar;COND` is `false`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
struct xref:bsl/enable_if-07.adoc[enable&lowbar;if]&lt;true&gt;;
----

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:bsl/enable_if-0b/type.adoc[`type`] 
| This `typedef` is an alias to the (template parameter) `t&lowbar;TYPE`&period;
|===



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