[#BloombergLP-bslmf-MetaInt-07] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmf.adoc[bslmf]::MetaInt :relfileprefix: ../../ :mrdocs: Distinct type representing a non‐negative compile‐time integer value. == Synopsis Declared in `<bslmf_metaint.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<int t_INT_VALUE> struct MetaInt : xref:bsl/integral_constant-02.adoc[bsl::integral_constant<int, t_INT_VALUE>] ---- == Description Instantiating this template produces a distinct type for each non‐negative integer value. This template has been deprecated in favor of the standard `integral_constant` template. == Base Classes [cols="1,4"] |=== | Name| Description | `xref:bsl/integral_constant-02.adoc[bsl::integral_constant<int, t_INT_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:BloombergLP/bslmf/MetaInt-07/Tag-06.adoc[`Tag`] | Tag type encoding `t_INT_VALUE` for overload resolution. | xref:BloombergLP/bslmf/MetaInt-07/Type.adoc[`Type`] | This specialization of `MetaInt`. | xref:bsl/integral_constant-02/type.adoc[`type`] | Alias for this `integral_constant` specialization. | xref:bsl/integral_constant-02/value_type.adoc[`value_type`] | Alias for the (template parameter) `t_TYPE`. |=== == Enums [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslmf/MetaInt-07/_04enum.adoc[`Unnamed enum`] | Compile‐time integer constants for this metafunction. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslmf/MetaInt-07/2constructor-09.adoc[`MetaInt`] [.small]#[constructor]# | Constructors | 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 t_TYPE`] | Return a copy of the template argument `t_VALUE`. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslmf/MetaInt-07/tag-0f.adoc[`tag`] | Return a reference to a tag encoding this type's integral value. |=== == Static Data Members [cols="1,4"] |=== | Name| Description | xref:bsl/integral_constant-02/value.adoc[`value`] | The compile‐time constant value of this metafunction. |=== == Specializations [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslmf/MetaInt-00.adoc[`MetaInt<0>`] | This specialization of `MetaInt` has a `VAL` of zero and is convertible to and from `bsl::false_type`. | xref:BloombergLP/bslmf/MetaInt-0b.adoc[`MetaInt<1>`] | This specialization of `MetaInt` has a `VAL` of one and is convertible to and from `bsl::true_type`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#