Distinct type representing a non‐negative compile‐time integer value.
Synopsis
Declared in <bslmf_metaint.h>
template<int t_INT_VALUE>
struct MetaInt
: 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
Name |
Description |
|
Metafunction representing a compile‐time constant of the specified (template parameter) |
Type Aliases
Name |
Description |
Tag type encoding |
|
This specialization of |
|
Alias for this |
|
Alias for the (template parameter) |
Enums
Name |
Description |
Compile‐time integer constants for this metafunction. |
Member Functions
Name |
Description |
|
Constructors |
Return a copy of the template argument |
|
Return a copy of the template argument |
Static Member Functions
Name |
Description |
Return a reference to a tag encoding this type's integral value. |
Static Data Members
Name |
Description |
The compile‐time constant value of this metafunction. |
Specializations
Name |
Description |
This specialization of |
|
This specialization of |
Created with MrDocs