Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/types/integer"

From cppreference.com
< cpp‎ | types
m (Text replace - "{{mark c++0x feature}}" to "{{mark c++11 feature}}")
m (Fixed typos in (u)intptr_t, (u)intmax_t, and their associated macros.)
Line 17: Line 17:
 
{{tdcl list item | {{tt|int_least32_t}} | signed integer type with width of at least 32 bits }}
 
{{tdcl list item | {{tt|int_least32_t}} | signed integer type with width of at least 32 bits }}
 
{{tdcl list item | {{tt|int_least64_t}} | signed integer type with width of at least 64 bits }}
 
{{tdcl list item | {{tt|int_least64_t}} | signed integer type with width of at least 64 bits }}
{{tdcl list item | {{tt|int_max_t}} | maximum width integer type }}
+
{{tdcl list item | {{tt|intmax_t}} | maximum width integer type }}
{{tdcl list item | {{tt|int_ptr_t}} | integer type capable of holding a pointer}}
+
{{tdcl list item | {{tt|intptr_t}} | integer type capable of holding a pointer}}
 
{{tdcl list item | {{tt|uint8_t}} | unsigned integer type with width of 8 bits }}
 
{{tdcl list item | {{tt|uint8_t}} | unsigned integer type with width of 8 bits }}
 
{{tdcl list item | {{tt|uint16_t}} | unsigned integer type with width of 16 bits }}
 
{{tdcl list item | {{tt|uint16_t}} | unsigned integer type with width of 16 bits }}
Line 31: Line 31:
 
{{tdcl list item | {{tt|uint_least32_t}} | unsigned integer type with width of at least 32 bits }}
 
{{tdcl list item | {{tt|uint_least32_t}} | unsigned integer type with width of at least 32 bits }}
 
{{tdcl list item | {{tt|uint_least64_t}} | unsigned integer type with width of at least 64 bits }}
 
{{tdcl list item | {{tt|uint_least64_t}} | unsigned integer type with width of at least 64 bits }}
{{tdcl list item | {{tt|uint_max_t}} | maximum width unsigned integer type }}
+
{{tdcl list item | {{tt|uintmax_t}} | maximum width unsigned integer type }}
{{tdcl list item | {{tt|uint_ptr_t}} | unsigned integer type capable of holding a pointer}}
+
{{tdcl list item | {{tt|uintptr_t}} | unsigned integer type capable of holding a pointer}}
 
{{tdcl list end}}
 
{{tdcl list end}}
 
{{dcl list begin}}
 
{{dcl list begin}}
Line 50: Line 50:
 
{{dcl list macro const | INT_LEAST32_MIN | minimum value of an object of type {{cpp|int_least32_t}} | nolink=true }}
 
{{dcl list macro const | INT_LEAST32_MIN | minimum value of an object of type {{cpp|int_least32_t}} | nolink=true }}
 
{{dcl list macro const | INT_LEAST64_MIN | minimum value of an object of type {{cpp|int_least64_t}} | nolink=true }}
 
{{dcl list macro const | INT_LEAST64_MIN | minimum value of an object of type {{cpp|int_least64_t}} | nolink=true }}
{{dcl list macro const | INT_PTR_MIN | minimum value of an object of type {{cpp|int_ptr_t}} | nolink=true }}
+
{{dcl list macro const | INTPTR_MIN | minimum value of an object of type {{cpp|intptr_t}} | nolink=true }}
{{dcl list macro const | INT_MAX_MIN | minimum value of an object of type {{cpp|int_max_t}} | nolink=true }}
+
{{dcl list macro const | INTMAX_MIN | minimum value of an object of type {{cpp|intmax_t}} | nolink=true }}
 
{{dcl list h2 | Signed integers : maximum value| nolink=true }}
 
{{dcl list h2 | Signed integers : maximum value| nolink=true }}
 
{{dcl list macro const | INT8_MAX | maximum value of an object of type {{cpp|int8_t}} | nolink=true }}
 
{{dcl list macro const | INT8_MAX | maximum value of an object of type {{cpp|int8_t}} | nolink=true }}
Line 65: Line 65:
 
{{dcl list macro const | INT_LEAST32_MAX | maximum value of an object of type {{cpp|int_least32_t}} | nolink=true }}
 
{{dcl list macro const | INT_LEAST32_MAX | maximum value of an object of type {{cpp|int_least32_t}} | nolink=true }}
 
{{dcl list macro const | INT_LEAST64_MAX | maximum value of an object of type {{cpp|int_least64_t}} | nolink=true }}
 
{{dcl list macro const | INT_LEAST64_MAX | maximum value of an object of type {{cpp|int_least64_t}} | nolink=true }}
{{dcl list macro const | INT_PTR_MAX | maximum value of an object of type {{cpp|int_ptr_t}} | nolink=true }}
+
{{dcl list macro const | INTPTR_MAX | maximum value of an object of type {{cpp|intptr_t}} | nolink=true }}
{{dcl list macro const | INT_MAX_MAX | maximum value of an object of type {{cpp|int_max_t}} | nolink=true }}
+
{{dcl list macro const | INTMAX_MAX | maximum value of an object of type {{cpp|intmax_t}} | nolink=true }}
 
{{dcl list h2 | Unsigned integers : maximum value| nolink=true }}
 
{{dcl list h2 | Unsigned integers : maximum value| nolink=true }}
 
{{dcl list macro const | UINT8_MAX | maximum value of an object of type {{cpp|uint8_t}} | nolink=true }}
 
{{dcl list macro const | UINT8_MAX | maximum value of an object of type {{cpp|uint8_t}} | nolink=true }}
Line 80: Line 80:
 
{{dcl list macro const | UINT_LEAST32_MAX | maximum value of an object of type {{cpp|uint_least32_t}} | nolink=true }}
 
{{dcl list macro const | UINT_LEAST32_MAX | maximum value of an object of type {{cpp|uint_least32_t}} | nolink=true }}
 
{{dcl list macro const | UINT_LEAST64_MAX | maximum value of an object of type {{cpp|uint_least64_t}} | nolink=true }}
 
{{dcl list macro const | UINT_LEAST64_MAX | maximum value of an object of type {{cpp|uint_least64_t}} | nolink=true }}
{{dcl list macro const | UINT_PTR_MAX | maximum value of an object of type {{cpp|uint_ptr_t}} | nolink=true }}
+
{{dcl list macro const | UINTPTR_MAX | maximum value of an object of type {{cpp|uintptr_t}} | nolink=true }}
{{dcl list macro const | UINT_MAX_MAX | maximum value of an object of type {{cpp|uint_max_t}} | nolink=true }}
+
{{dcl list macro const | UINTMAX_MAX | maximum value of an object of type {{cpp|uintmax_t}} | nolink=true }}
 
{{dcl list end}}
 
{{dcl list end}}

Revision as of 12:46, 25 October 2011

Template:cpp/types/sidebar

Template:tdcl list begin Template:tdcl list h1 Template:tdcl list header Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list end

Contents

Macro constants

Defined in header <cstdint>
Signed integers : minimum value
INT8_MIN
minimum value of an object of type Template:cpp
(macro constant)
INT16_MIN
minimum value of an object of type Template:cpp
(macro constant)
INT32_MIN
minimum value of an object of type Template:cpp
(macro constant)
INT64_MIN
minimum value of an object of type Template:cpp
(macro constant)
INT_FAST8_MIN
minimum value of an object of type Template:cpp
(macro constant)
INT_FAST16_MIN
minimum value of an object of type Template:cpp
(macro constant)
INT_FAST32_MIN
minimum value of an object of type Template:cpp
(macro constant)
INT_FAST64_MIN
minimum value of an object of type Template:cpp
(macro constant)
INT_LEAST8_MIN
minimum value of an object of type Template:cpp
(macro constant)
INT_LEAST16_MIN
minimum value of an object of type Template:cpp
(macro constant)
INT_LEAST32_MIN
minimum value of an object of type Template:cpp
(macro constant)
INT_LEAST64_MIN
minimum value of an object of type Template:cpp
(macro constant)
INTPTR_MIN
minimum value of an object of type Template:cpp
(macro constant)
INTMAX_MIN
minimum value of an object of type Template:cpp
(macro constant)
Signed integers : maximum value
INT8_MAX
maximum value of an object of type Template:cpp
(macro constant)
INT16_MAX
maximum value of an object of type Template:cpp
(macro constant)
INT32_MAX
maximum value of an object of type Template:cpp
(macro constant)
INT64_MAX
maximum value of an object of type Template:cpp
(macro constant)
INT_FAST8_MAX
maximum value of an object of type Template:cpp
(macro constant)
INT_FAST16_MAX
maximum value of an object of type Template:cpp
(macro constant)
INT_FAST32_MAX
maximum value of an object of type Template:cpp
(macro constant)
INT_FAST64_MAX
maximum value of an object of type Template:cpp
(macro constant)
INT_LEAST8_MAX
maximum value of an object of type Template:cpp
(macro constant)
INT_LEAST16_MAX
maximum value of an object of type Template:cpp
(macro constant)
INT_LEAST32_MAX
maximum value of an object of type Template:cpp
(macro constant)
INT_LEAST64_MAX
maximum value of an object of type Template:cpp
(macro constant)
INTPTR_MAX
maximum value of an object of type Template:cpp
(macro constant)
INTMAX_MAX
maximum value of an object of type Template:cpp
(macro constant)
Unsigned integers : maximum value
UINT8_MAX
maximum value of an object of type Template:cpp
(macro constant)
UINT16_MAX
maximum value of an object of type Template:cpp
(macro constant)
UINT32_MAX
maximum value of an object of type Template:cpp
(macro constant)
UINT64_MAX
maximum value of an object of type Template:cpp
(macro constant)
UINT_FAST8_MAX
maximum value of an object of type Template:cpp
(macro constant)
UINT_FAST16_MAX
maximum value of an object of type Template:cpp
(macro constant)
UINT_FAST32_MAX
maximum value of an object of type Template:cpp
(macro constant)
UINT_FAST64_MAX
maximum value of an object of type Template:cpp
(macro constant)
UINT_LEAST8_MAX
maximum value of an object of type Template:cpp
(macro constant)
UINT_LEAST16_MAX
maximum value of an object of type Template:cpp
(macro constant)
UINT_LEAST32_MAX
maximum value of an object of type Template:cpp
(macro constant)
UINT_LEAST64_MAX
maximum value of an object of type Template:cpp
(macro constant)
UINTPTR_MAX
maximum value of an object of type Template:cpp
(macro constant)
UINTMAX_MAX
maximum value of an object of type Template:cpp
(macro constant)