[#bsl-is_volatile-02]
= xref:bsl.adoc[bsl]::is&lowbar;volatile
:relfileprefix: ../
:mrdocs:

Meta&hyphen;function for detecting `volatile`&hyphen;qualified types&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;TYPE&gt;
struct is&lowbar;volatile
    : xref:bsl/false_type.adoc[false&lowbar;type]
----

== Description

This `struct` template implements the `is&lowbar;volatile` meta&hyphen;function defined in the C&plus;&plus;11 standard &lsqb;meta&period;unary&period;cat&rsqb;to determine if the (template parameter) `t&lowbar;TYPE` is `volatile`&hyphen;qualified&period; This `struct` derives from `bsl&colon;&colon;true&lowbar;type` if the `t&lowbar;TYPE` is `volatile`&hyphen;qualified, and `bsl&colon;&colon;false&lowbar;type` otherwise&period; Note that this generic default template derives from `bsl&colon;&colon;false&lowbar;type`&period; A template specialization is provided (below) that derives from `bsl&colon;&colon;true&lowbar;type`&period;

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:bsl/false_type.adoc[false&lowbar;type]`
| Metafunction representing the boolean constant `false`&period;
|===

== Specializations

[cols="1,4"]
|===
| Name| Description
| xref:bsl/is_volatile-08.adoc[`is&lowbar;volatile&lt;t&lowbar;TYPE volatile&gt;`] 
| This partial specialization of `is&lowbar;volatile`, for when the (template parameter) `t&lowbar;TYPE` is `volatile`&hyphen;qualified, derives from `bsl&colon;&colon;true&lowbar;type`&period;
|===



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