[#bsl-is_class]
= xref:bsl.adoc[bsl]::is&lowbar;class
:relfileprefix: ../
:mrdocs:

Meta&hyphen;function for detecting class types&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;TYPE&gt;
struct is&lowbar;class
    : &sol;&ast; implementation-defined &ast;&sol;::type
----

== Description

This `struct` template implements the `is&lowbar;class` 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 a class&period; Note that for implementations without native library support, this component will mis&hyphen;diagnose `union` types as classes&period; This would be correct according to the core language definition of a class type, but is an error according to the standard library definition of this type trait&period;

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `&sol;&ast; implementation-defined &ast;&sol;::type`
| 
|===


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