[#BloombergLP-bslmf-IsTriviallyCopyableCheck]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmf.adoc[bslmf]::IsTriviallyCopyableCheck
:relfileprefix: ../../
:mrdocs:

This `struct` exists to return the same value as `is&lowbar;trivially&lowbar;copyable` and is intended to never be specialized&period; The purpose of using it is to perform the following static assert that the `bsl` and `std` versions of `is&lowbar;trivially&lowbar;copyable` are in sync&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;TYPE&gt;
struct IsTriviallyCopyableCheck
    : xref:bsl/is_trivially_copyable-044.adoc[bsl::is&lowbar;trivially&lowbar;copyable&lt;t&lowbar;TYPE&gt;]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:bsl/is_trivially_copyable-044.adoc[bsl::is&lowbar;trivially&lowbar;copyable&lt;t&lowbar;TYPE&gt;]`
| This `struct` template implements a meta&hyphen;function to determine whether the (template parameter) `t&lowbar;TYPE` is trivially copyable&period; This `struct` derives from `bsl&colon;&colon;true&lowbar;type` if the `t&lowbar;TYPE` is trivially copyable, and from `bsl&colon;&colon;false&lowbar;type` otherwise&period; This meta&hyphen;function has the same syntax as the `is&lowbar;trivially&lowbar;copyable` meta&hyphen;function defined in the C&plus;&plus;11 standard &lsqb;meta&period;unary&period;prop&rsqb;&semi; however, this meta&hyphen;function can automatically determine the value for the following types only&colon; reference types, fundamental types, enumerated types, pointers to members, and types declared to have the `bsl&colon;&colon;is&lowbar;trivially&lowbar;copyable` trait using the `BSLMF&lowbar;NESTED&lowbar;TRAIT&lowbar;DECLARATION` macro (the value for other types defaults to `false`)&period; To support other trivially copyable types, this template must be specialized to inherit from `bsl&colon;&colon;true&lowbar;type` for them&period;
|===


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