宏符号索引

来自cppreference.com


此页面尝试列出所有来自标准库的可用宏符号。符号书写如下:

  • 仿函数宏带 ()

_ A B C D E F H I K L M N O P R S T U V W


_ (下划线)

__alignas_is_defined (C++11 起)
__bool_true_false_are_defined (C++11 起)
__cpp_lib_adaptor_iterator_pair_constructor (C++23 起)
__cpp_lib_addressof_constexpr (C++20 起)
__cpp_lib_allocate_at_least (C++23 起)
__cpp_lib_allocator_traits_is_always_equal (C++20 起)
__cpp_lib_any (C++20 起)
__cpp_lib_apply (C++20 起)
__cpp_lib_array_constexpr (C++20 起)
__cpp_lib_as_const (C++20 起)
__cpp_lib_assume_aligned (C++20 起)
__cpp_lib_atomic_flag_test (C++20 起)
__cpp_lib_atomic_float (C++20 起)
__cpp_lib_atomic_is_always_lock_free (C++20 起)
__cpp_lib_atomic_lock_free_type_aliases (C++20 起)
__cpp_lib_atomic_ref (C++20 起)
__cpp_lib_atomic_shared_ptr (C++20 起)
__cpp_lib_atomic_value_initialization (C++20 起)
__cpp_lib_atomic_wait (C++20 起)
__cpp_lib_barrier (C++20 起)
__cpp_lib_bind_front (C++20 起)
__cpp_lib_bit_cast (C++20 起)
__cpp_lib_bitops (C++20 起)
__cpp_lib_bool_constant (C++20 起)
__cpp_lib_bounded_array_traits (C++20 起)
__cpp_lib_boyer_moore_searcher (C++20 起)
__cpp_lib_byte (C++20 起)
__cpp_lib_char8_t (C++20 起)
__cpp_lib_chrono (C++20 起)
__cpp_lib_chrono_udls (C++20 起)
__cpp_lib_clamp (C++20 起)
__cpp_lib_complex_udls (C++20 起)
__cpp_lib_concepts (C++20 起)
__cpp_lib_constexpr_algorithms (C++20 起)
__cpp_lib_constexpr_complex (C++20 起)
__cpp_lib_constexpr_dynamic_alloc (C++20 起)
__cpp_lib_constexpr_functional (C++20 起)
__cpp_lib_constexpr_invoke (C++20 起)
__cpp_lib_constexpr_iterator (C++20 起)
__cpp_lib_constexpr (C++20 起)
__cpp_lib_constexpr_memory (C++20 起)
__cpp_lib_constexpr_numeric (C++20 起)
__cpp_lib_constexpr_string (C++20 起)
__cpp_lib_constexpr_string_view (C++20 起)
__cpp_lib_constexpr_swap_algorithms (C++20 起)
__cpp_lib_constexpr_tuple (C++20 起)
__cpp_lib_constexpr_typeinfo (C++23 起)
__cpp_lib_constexpr_utility (C++20 起)
__cpp_lib_constexpr_vector (C++20 起)
__cpp_lib_coroutine (C++20 起)
__cpp_lib_destroying_delete (C++20 起)
__cpp_lib_enable_shared_from_this (C++20 起)
__cpp_lib_endian (C++20 起)
__cpp_lib_erase_if (C++20 起)
__cpp_lib_exchange_function (C++20 起)
__cpp_lib_execution (C++20 起)
__cpp_lib_filesystem (C++20 起)
__cpp_lib_format (C++20 起)
__cpp_lib_gcd_lcm (C++20 起)
__cpp_lib_generic_associative_lookup (C++20 起)
__cpp_lib_generic_unordered_lookup (C++20 起)
__cpp_lib_hardware_interference_size (C++20 起)
__cpp_lib_has_unique_object_representations (C++20 起)
__cpp_lib_hypot (C++20 起)
__cpp_lib_incomplete_container_elements (C++20 起)
__cpp_lib_integer_comparison_functions (C++20 起)
__cpp_lib_integer_sequence (C++20 起)
__cpp_lib_integral_constant_callable (C++20 起)
__cpp_lib_interpolate (C++20 起)
__cpp_lib_int_pow2 (C++20 起)
__cpp_lib_invoke (C++20 起)
__cpp_lib_invoke_r (C++23 起)
__cpp_lib_is_aggregate (C++20 起)
__cpp_lib_is_constant_evaluated (C++20 起)
__cpp_lib_is_final (C++20 起)
__cpp_lib_is_invocable (C++20 起)
__cpp_lib_is_layout_compatible (C++20 起)
__cpp_lib_is_nothrow_convertible (C++20 起)
__cpp_lib_is_null_pointer (C++20 起)
__cpp_lib_is_pointer_interconvertible (C++20 起)
__cpp_lib_is_scoped_enum (C++20 起)
__cpp_lib_is_swappable (C++20 起)
__cpp_lib_jthread (C++20 起)
__cpp_lib_latch (C++20 起)
__cpp_lib_launder (C++20 起)
__cpp_lib_list_remove_return_type (C++20 起)
__cpp_lib_logical_traits (C++20 起)
__cpp_lib_make_from_tuple (C++20 起)
__cpp_lib_make_reverse_iterator (C++20 起)
__cpp_lib_make_unique (C++20 起)
__cpp_lib_map_try_emplace (C++20 起)
__cpp_lib_math_constants (C++20 起)
__cpp_lib_math_special_functions (C++20 起)
__cpp_lib_memory_resource (C++20 起)
__cpp_lib_node_extract (C++20 起)
__cpp_lib_nonmember_container_access (C++20 起)
__cpp_lib_not_fn (C++20 起)
__cpp_lib_null_iterators (C++20 起)
__cpp_lib_optional (C++20 起)
__cpp_lib_parallel_algorithm (C++20 起)
__cpp_lib_polymorphic_allocator (C++20 起)
__cpp_lib_quoted_string_io (C++20 起)
__cpp_lib_ranges (C++20 起)
__cpp_lib_ranges_starts_ends_with (C++23 起)
__cpp_lib_raw_memory_algorithms (C++20 起)
__cpp_lib_remove_cvref (C++20 起)
__cpp_lib_result_of_sfinae (C++20 起)
__cpp_lib_robust_nonmodifying_seq_ops (C++20 起)
__cpp_lib_sample (C++20 起)
__cpp_lib_scoped_lock (C++20 起)
__cpp_lib_semaphore (C++20 起)
__cpp_lib_shared_mutex (C++20 起)
__cpp_lib_shared_ptr_arrays (C++20 起)
__cpp_lib_shared_ptr_weak_type (C++20 起)
__cpp_lib_shared_timed_mutex (C++20 起)
__cpp_lib_shift (C++20 起)
__cpp_lib_smart_ptr_for_overwrite (C++20 起)
__cpp_lib_source_location (C++20 起)
__cpp_lib_spaceship (C++20 起)
__cpp_lib_span (C++20 起)
__cpp_lib_spanstream (C++23 起)
__cpp_lib_ssize (C++20 起)
__cpp_lib_stacktrace (C++23 起)
__cpp_lib_starts_ends_with (C++20 起)
__cpp_lib_stdatomic_h (C++23 起)
__cpp_lib_string_contains (C++23 起)
__cpp_lib_string_udls (C++20 起)
__cpp_lib_string_view (C++20 起)
__cpp_lib_syncbuf (C++20 起)
__cpp_lib_three_way_comparison (C++20 起)
__cpp_lib_to_address (C++20 起)
__cpp_lib_to_array (C++20 起)
__cpp_lib_to_chars (C++20 起)
__cpp_lib_to_underlying (C++23 起)
__cpp_lib_transformation_trait_aliases (C++20 起)
__cpp_lib_transparent_operators (C++20 起)
__cpp_lib_tuple_element_t (C++20 起)
__cpp_lib_tuples_by_type (C++20 起)
__cpp_lib_type_identity (C++20 起)
__cpp_lib_type_trait_variable_templates (C++20 起)
__cpp_lib_uncaught_exceptions (C++20 起)
__cpp_lib_unordered_map_try_emplace (C++20 起)
__cpp_lib_unwrap_ref (C++20 起)
__cpp_lib_variant (C++20 起)
__cpp_lib_void_t (C++20 起)
_IOFBF
_IOLBF
_IONBF

A

assert()
ATOMIC_BOOL_LOCK_FREE (C++11 起)
ATOMIC_CHAR_LOCK_FREE (C++11 起)
ATOMIC_CHAR16_T_LOCK_FREE (C++11 起)
ATOMIC_CHAR32_T_LOCK_FREE (C++11 起)
ATOMIC_CHAR8_T_LOCK_FREE (C++20 起)
ATOMIC_FLAG_INIT (C++11 起)(C++20 中弃用)
ATOMIC_INT_LOCK_FREE (C++11 起)
ATOMIC_LLONG_LOCK_FREE (C++11 起)
ATOMIC_LONG_LOCK_FREE (C++11 起)
ATOMIC_POINTER_LOCK_FREE (C++11 起)
ATOMIC_SHORT_LOCK_FREE (C++11 起)
ATOMIC_VAR_INIT() (C++11 起)(C++20 中弃用)
ATOMIC_WCHAR_T_LOCK_FREE (C++11 起)

B

BUFSIZ

C

CHAR_BIT
CHAR_MAX
CHAR_MIN
CLOCKS_PER_SEC

D

DBL_DECIMAL_DIG (C++17 起)
DBL_DIG
DBL_EPSILON
DBL_HAS_SUBNORM (C++17 起)
DBL_MANT_DIG
DBL_MAX
DBL_MAX_10_EXP
DBL_MAX_EXP
DBL_MIN
DBL_MIN_10_EXP
DBL_MIN_EXP
DBL_TRUE_MIN (C++17 起)
DECIMAL_DIG (C++11 起)

E

E2BIG (C++11 起)
EACCES (C++11 起)
EADDRINUSE (C++11 起)
EADDRNOTAVAIL (C++11 起)
EAFNOSUPPORT (C++11 起)
EAGAIN (C++11 起)
EALREADY (C++11 起)
EBADF (C++11 起)
EBADMSG (C++11 起)
EBUSY (C++11 起)
ECANCELED (C++11 起)
ECHILD (C++11 起)
ECONNABORTED (C++11 起)
ECONNREFUSED (C++11 起)
ECONNRESET (C++11 起)
EDEADLK (C++11 起)
EDESTADDRREQ (C++11 起)
EDOM
EEXIST (C++11 起)
EFAULT (C++11 起)
EFBIG (C++11 起)
EHOSTUNREACH (C++11 起)
EIDRM (C++11 起)
EILSEQ (C++11 起)
EINPROGRESS (C++11 起)
EINTR (C++11 起)
EINVAL (C++11 起)
EIO (C++11 起)
EISCONN (C++11 起)
EISDIR (C++11 起)
ELOOP (C++11 起)
EMFILE (C++11 起)
EMLINK (C++11 起)
EMSGSIZE (C++11 起)
ENAMETOOLONG (C++11 起)
ENETDOWN (C++11 起)
ENETRESET (C++11 起)
ENETUNREACH (C++11 起)
ENFILE (C++11 起)
ENOBUFS (C++11 起)
ENODATA (C++11 起)
ENODEV (C++11 起)
ENOENT (C++11 起)
ENOEXEC (C++11 起)
ENOLCK (C++11 起)
ENOLINK (C++11 起)
ENOMEM (C++11 起)
ENOMSG (C++11 起)
ENOPROTOOPT (C++11 起)
ENOSPC (C++11 起)
ENOSR (C++11 起)
ENOSTR (C++11 起)
ENOSYS (C++11 起)
ENOTCONN (C++11 起)
ENOTDIR (C++11 起)
ENOTEMPTY (C++11 起)
ENOTRECOVERABLE (C++11 起)
ENOTSOCK (C++11 起)
ENOTSUP (C++11 起)
ENOTTY (C++11 起)
ENXIO (C++11 起)
EOF
EOPNOTSUPP (C++11 起)
EOVERFLOW (C++11 起)
EOWNERDEAD (C++11 起)
EPERM (C++11 起)
EPIPE (C++11 起)
EPROTO (C++11 起)
EPROTONOSUPPORT (C++11 起)
EPROTOTYPE (C++11 起)
ERANGE
EROFS (C++11 起)
errno
ESPIPE (C++11 起)
ESRCH (C++11 起)
ETIME (C++11 起)
ETIMEDOUT (C++11 起)
ETXTBSY (C++11 起)
EWOULDBLOCK (C++11 起)
EXDEV (C++11 起)
EXIT_FAILURE
EXIT_SUCCESS

F

FE_ALL_EXCEPT (C++11 起)
FE_DFL_ENV (C++11 起)
FE_DIVBYZERO (C++11 起)
FE_DOWNWARD (C++11 起)
FE_INEXACT (C++11 起)
FE_INVALID (C++11 起)
FE_OVERFLOW (C++11 起)
FE_TONEAREST (C++11 起)
FE_TOWARDZERO (C++11 起)
FE_UNDERFLOW (C++11 起)
FE_UPWARD (C++11 起)
FILENAME_MAX
FLT_DECIMAL_DIG (C++17 起)
FLT_DIG
FLT_EPSILON
FLT_EVAL_METHOD (C++11 起)
FLT_HAS_SUBNORM (C++17 起)
FLT_MANT_DIG
FLT_MAX
FLT_MAX_10_EXP
FLT_MAX_EXP
FLT_MIN
FLT_MIN_10_EXP
FLT_MIN_EXP
FLT_RADIX
FLT_ROUNDS
FLT_TRUE_MIN (C++17 起)
FOPEN_MAX
FP_FAST_FMA (C++11 起)
FP_FAST_FMAF (C++11 起)
FP_FAST_FMAL (C++11 起)
FP_ILOGB0 (C++11 起)
FP_ILOGBNAN (C++11 起)
FP_SUBNORMAL (C++11 起)
FP_ZERO (C++11 起)
FP_INFINITE (C++11 起)
FP_NAN (C++11 起)
FP_NORMAL (C++11 起)

H

HUGE_VAL
HUGE_VALF (C++11 起)
HUGE_VALL (C++11 起)

I

INFINITY (C++11 起)
INT_FAST16_MAX (C++11 起)
INT_FAST16_MIN (C++11 起)
INT_FAST32_MAX (C++11 起)
INT_FAST32_MIN (C++11 起)
INT_FAST64_MAX (C++11 起)
INT_FAST64_MIN (C++11 起)
INT_FAST8_MAX (C++11 起)
INT_FAST8_MIN (C++11 起)
INT_LEAST16_MAX (C++11 起)
INT_LEAST16_MIN (C++11 起)
INT_LEAST32_MAX (C++11 起)
INT_LEAST32_MIN (C++11 起)
INT_LEAST64_MAX (C++11 起)
INT_LEAST64_MIN (C++11 起)
INT_LEAST8_MAX (C++11 起)
INT_LEAST8_MIN (C++11 起)
INT_MAX
INT_MIN
INT16_C() (C++11 起)
INT16_MAX (C++11 起)
INT16_MIN (C++11 起)
INT32_C() (C++11 起)
INT32_MAX (C++11 起)
INT32_MIN (C++11 起)
INT64_C() (C++11 起)
INT64_MAX (C++11 起)
INT64_MIN (C++11 起)
INT8_C() (C++11 起)
INT8_MAX (C++11 起)
INT8_MIN (C++11 起)
INTMAX_C() (C++11 起)
INTMAX_MAX (C++11 起)
INTMAX_MIN (C++11 起)
INTPTR_MAX (C++11 起)
INTPTR_MIN (C++11 起)

L

L_tmpnam
LC_ALL
LC_COLLATE
LC_CTYPE
LC_MONETARY
LC_NUMERIC
LC_TIME
LDBL_DECIMAL_DIG (C++17 起)
LDBL_DIG
LDBL_EPSILON
LDBL_HAS_SUBNORM (C++17 起)
LDBL_MANT_DIG
LDBL_MAX
LDBL_MAX_10_EXP
LDBL_MAX_EXP
LDBL_MIN
LDBL_MIN_10_EXP
LDBL_MIN_EXP
LDBL_TRUE_MIN (C++17 起)
LLONG_MAX (C++11 起)
LLONG_MIN (C++11 起)
LONG_MAX
LONG_MIN

M

MATH_ERREXCEPT (C++11 起)
math_errhandling (C++11 起)
MATH_ERRNO (C++11 起)
MB_CUR_MAX
MB_LEN_MAX

N

NAN (C++11 起)
NULL

O

offsetof()
ONCE_FLAG_INIT (C++11 起)

P

PRId16 (C++11 起)
PRId32 (C++11 起)
PRId64 (C++11 起)
PRId8 (C++11 起)
PRIdFAST16 (C++11 起)
PRIdFAST32 (C++11 起)
PRIdFAST64 (C++11 起)
PRIdFAST8 (C++11 起)
PRIdLEAST16 (C++11 起)
PRIdLEAST32 (C++11 起)
PRIdLEAST64 (C++11 起)
PRIdLEAST8 (C++11 起)
PRIdMAX (C++11 起)
PRIdPTR (C++11 起)
PRIi16 (C++11 起)
PRIi32 (C++11 起)
PRIi64 (C++11 起)
PRIi8 (C++11 起)
PRIiFAST16 (C++11 起)
PRIiFAST32 (C++11 起)
PRIiFAST64 (C++11 起)
PRIiFAST8 (C++11 起)
PRIiLEAST16 (C++11 起)
PRIiLEAST32 (C++11 起)
PRIiLEAST64 (C++11 起)
PRIiLEAST8 (C++11 起)
PRIiMAX (C++11 起)
PRIiPTR (C++11 起)
PRIo16 (C++11 起)
PRIo32 (C++11 起)
PRIo64 (C++11 起)
PRIo8 (C++11 起)
PRIoFAST16 (C++11 起)
PRIoFAST32 (C++11 起)
PRIoFAST64 (C++11 起)
PRIoFAST8 (C++11 起)
PRIoLEAST16 (C++11 起)
PRIoLEAST32 (C++11 起)
PRIoLEAST64 (C++11 起)
PRIoLEAST8 (C++11 起)
PRIoMAX (C++11 起)
PRIoPTR (C++11 起)
PRIu16 (C++11 起)
PRIu32 (C++11 起)
PRIu64 (C++11 起)
PRIu8 (C++11 起)
PRIuFAST16 (C++11 起)
PRIuFAST32 (C++11 起)
PRIuFAST64 (C++11 起)
PRIuFAST8 (C++11 起)
PRIuLEAST16 (C++11 起)
PRIuLEAST32 (C++11 起)
PRIuLEAST64 (C++11 起)
PRIuLEAST8 (C++11 起)
PRIuMAX (C++11 起)
PRIuPTR (C++11 起)
PRIx16 (C++11 起)
PRIX16 (C++11 起)
PRIx32 (C++11 起)
PRIX32 (C++11 起)
PRIx64 (C++11 起)
PRIX64 (C++11 起)
PRIx8 (C++11 起)
PRIX8 (C++11 起)
PRIxFAST16 (C++11 起)
PRIXFAST16 (C++11 起)
PRIxFAST32 (C++11 起)
PRIXFAST32 (C++11 起)
PRIxFAST64 (C++11 起)
PRIXFAST64 (C++11 起)
PRIxFAST8 (C++11 起)
PRIXFAST8 (C++11 起)
PRIxLEAST16 (C++11 起)
PRIXLEAST16 (C++11 起)
PRIxLEAST32 (C++11 起)
PRIXLEAST32 (C++11 起)
PRIxLEAST64 (C++11 起)
PRIXLEAST64 (C++11 起)
PRIxLEAST8 (C++11 起)
PRIXLEAST8 (C++11 起)
PRIxMAX (C++11 起)
PRIXMAX (C++11 起)
PRIxPTR (C++11 起)
PRIXPTR (C++11 起)
PTRDIFF_MAX (C++11 起)
PTRDIFF_MIN (C++11 起)

R

RAND_MAX

S

SCHAR_MAX
SCHAR_MIN
SCNd16 (C++11 起)
SCNd32 (C++11 起)
SCNd64 (C++11 起)
SCNd8 (C++11 起)
SCNdFAST16 (C++11 起)
SCNdFAST32 (C++11 起)
SCNdFAST64 (C++11 起)
SCNdFAST8 (C++11 起)
SCNdLEAST16 (C++11 起)
SCNdLEAST32 (C++11 起)
SCNdLEAST64 (C++11 起)
SCNdLEAST8 (C++11 起)
SCNdMAX (C++11 起)
SCNdPTR (C++11 起)
SCNi16 (C++11 起)
SCNi32 (C++11 起)
SCNi64 (C++11 起)
SCNi8 (C++11 起)
SCNiFAST16 (C++11 起)
SCNiFAST32 (C++11 起)
SCNiFAST64 (C++11 起)
SCNiFAST8 (C++11 起)
SCNiLEAST16 (C++11 起)
SCNiLEAST32 (C++11 起)
SCNiLEAST64 (C++11 起)
SCNiLEAST8 (C++11 起)
SCNiMAX (C++11 起)
SCNiPTR (C++11 起)
SCNo16 (C++11 起)
SCNo32 (C++11 起)
SCNo64 (C++11 起)
SCNo8 (C++11 起)
SCNoFAST16 (C++11 起)
SCNoFAST32 (C++11 起)
SCNoFAST64 (C++11 起)
SCNoFAST8 (C++11 起)
SCNoLEAST16 (C++11 起)
SCNoLEAST32 (C++11 起)
SCNoLEAST64 (C++11 起)
SCNoLEAST8 (C++11 起)
SCNoMAX (C++11 起)
SCNoPTR (C++11 起)
SCNu16 (C++11 起)
SCNu32 (C++11 起)
SCNu64 (C++11 起)
SCNu8 (C++11 起)
SCNuFAST16 (C++11 起)
SCNuFAST32 (C++11 起)
SCNuFAST64 (C++11 起)
SCNuFAST8 (C++11 起)
SCNuLEAST16 (C++11 起)
SCNuLEAST32 (C++11 起)
SCNuLEAST64 (C++11 起)
SCNuLEAST8 (C++11 起)
SCNuMAX (C++11 起)
SCNuPTR (C++11 起)
SCNx16 (C++11 起)
SCNx32 (C++11 起)
SCNx64 (C++11 起)
SCNx8 (C++11 起)
SCNxFAST16 (C++11 起)
SCNxFAST32 (C++11 起)
SCNxFAST64 (C++11 起)
SCNxFAST8 (C++11 起)
SCNxLEAST16 (C++11 起)
SCNxLEAST32 (C++11 起)
SCNxLEAST64 (C++11 起)
SCNxLEAST8 (C++11 起)
SCNxMAX (C++11 起)
SCNxPTR (C++11 起)
SEEK_CUR
SEEK_END
SEEK_SET
setjmp()
SHRT_MAX
SHRT_MIN
SIG_ATOMIC_MAX (C++11 起)
SIG_ATOMIC_MIN (C++11 起)
SIG_DFL
SIG_ERR
SIG_IGN
SIGABRT
SIGFPE
SIGILL
SIGINT
SIGSEGV
SIGTERM
SIZE_MAX (C++11 起)
stderr
stdin
stdout

T

TIME_UTC (C++17 起)
TMP_MAX

U

UCHAR_MAX
UINT_FAST16_MAX (C++11 起)
UINT_FAST32_MAX (C++11 起)
UINT_FAST64_MAX (C++11 起)
UINT_FAST8_MAX (C++11 起)
UINT_LEAST16_MAX (C++11 起)
UINT_LEAST32_MAX (C++11 起)
UINT_LEAST64_MAX (C++11 起)
UINT_LEAST8_MAX (C++11 起)
UINT_MAX
UINT16_C() (C++11 起)
UINT16_MAX (C++11 起)
UINT32_C() (C++11 起)
UINT32_MAX (C++11 起)
UINT64_MAX (C++11 起)
UINT64_C() (C++11 起)
UINT8_C() (C++11 起)
UINT8_MAX (C++11 起)
UINTMAX_C() (C++11 起)
UINTMAX_MAX (C++11 起)
UINTPTR_MAX (C++11 起)
ULLONG_MAX (C++11 起)
ULONG_MAX
USHRT_MAX

V

va_arg()
va_copy() (C++11 起)
va_end()
va_start()

W

WCHAR_MAX (C++11 起)
WCHAR_MIN (C++11 起)
WEOF
WINT_MAX (C++11 起)
WINT_MIN (C++11 起)

参阅