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.
Type Aliases
| Name | Description |
Tag | Tag type encoding t_INT_VALUE for overload resolution. |
Type | This specialization of MetaInt. |
type | Alias for this integral_constant specialization. |
value_type | Alias for the (template parameter) t_TYPE. |
Enums
| Name | Description |
Unnamed enum | Compile-time integer constants for this metafunction. |
Member Functions
| Name | Description |
MetaInt [constructor] | Constructors |
operator() | Return a copy of the template argument t_VALUE. |
operator t_TYPE | Return a copy of the template argument t_VALUE. |
Static Member Functions
| Name | Description |
tag | Return a reference to a tag encoding this type's integral value. |
Static Data Members
| Name | Description |
value | The compile-time constant value of this metafunction. |
Specializations
| Name | Description |
MetaInt<0> | This specialization of MetaInt has a VAL of zero and is convertible to and from bsl::false_type. |
MetaInt<1> | This specialization of MetaInt has a VAL of one and is convertible to and from bsl::true_type. |