[#bsl-is_fundamental-09] = xref:bsl.adoc[bsl]::is_fundamental :relfileprefix: ../ :mrdocs: This `struct` template implements a meta‐function for checking if a type is fundamental as defined in the C++11 standard [basic.fundamental]. Note that this is subtly differemt from `bslmf::IsFundamental`, which also returns `true_type` for references to fundamental types. == Synopsis Declared in `<bslmf_isfundamental.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_TYPE> struct is_fundamental : xref:bsl/integral_constant-02.adoc[integral_constant<bool, is_arithmetic<t_TYPE>::value || is_void<t_TYPE>::value>] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:bsl/integral_constant-02.adoc[integral_constant<bool, is_arithmetic<t_TYPE>::value || is_void<t_TYPE>::value>]` | Metafunction representing a compile‐time constant of the specified (template parameter) `t_TYPE` with the specified (template parameter) `t_VALUE`. |=== == Type Aliases [cols="1,4"] |=== | Name| Description | xref:bsl/integral_constant-02/type.adoc[`type`] | Alias for this `integral_constant` specialization. | xref:bsl/integral_constant-02/value_type.adoc[`value_type`] | |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:bsl/integral_constant-02/operator_call.adoc[`operator()`] | Return a copy of the template argument `t_VALUE`. | xref:bsl/integral_constant-02/2conversion.adoc[`operator value_type`] | |=== == Static Data Members [cols="1"] |=== | Name | xref:bsl/integral_constant-02/value.adoc[`value`] |=== == Specializations [cols="1,4"] |=== | Name| Description | xref:bsl/is_fundamental-06.adoc[`is_fundamental<bsl::nullptr_t>`] | Explicit specialization to confirm that the type of `nullptr` is fundamental. | xref:bsl/is_fundamental-05.adoc[`is_fundamental<bsl::nullptr_t volatile>`] | Explicit specialization to confirm that the type of `volatile nullptr` is fundamental. | xref:bsl/is_fundamental-0f.adoc[`is_fundamental<bsl::nullptr_t const>`] | Explicit specialization to confirm that the type of `const nullptr` is fundamental. | xref:bsl/is_fundamental-08.adoc[`is_fundamental<bsl::nullptr_t const volatile>`] | Explicit specialization to confirm that the type of `const volatile nullptr` is fundamental. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#