标准库标头 <cinttypes> (C++11)
来自cppreference.com
此标头原作为 <inttypes.h> 存在于 C 标准库。
[编辑]概要
#include <cstdint> namespace std {using imaxdiv_t =/* 见描述 */; constexpr intmax_t imaxabs(intmax_t j);constexpr imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom); intmax_t strtoimax(constchar* nptr, char** endptr, int base); uintmax_t strtoumax(constchar* nptr, char** endptr, int base); intmax_t wcstoimax(constwchar_t* nptr, wchar_t** endptr, int base); uintmax_t wcstoumax(constwchar_t* nptr, wchar_t** endptr, int base); constexpr intmax_t abs(intmax_t);// 可选,见描述constexpr imaxdiv_t div(intmax_t, intmax_t);// 可选,见描述} #define PRIdN /* 见描述 */#define PRIiN /* 见描述 */#define PRIoN /* 见描述 */#define PRIuN /* 见描述 */#define PRIxN /* 见描述 */#define PRIXN /* 见描述 */#define SCNdN /* 见描述 */#define SCNiN /* 见描述 */#define SCNoN /* 见描述 */#define SCNuN /* 见描述 */#define SCNxN /* 见描述 */#define PRIdLEASTN /* 见描述 */#define PRIiLEASTN /* 见描述 */#define PRIoLEASTN /* 见描述 */#define PRIuLEASTN /* 见描述 */#define PRIxLEASTN /* 见描述 */#define PRIXLEASTN /* 见描述 */#define SCNdLEASTN /* 见描述 */#define SCNiLEASTN /* 见描述 */#define SCNoLEASTN /* 见描述 */#define SCNuLEASTN /* 见描述 */#define SCNxLEASTN /* 见描述 */#define PRIdFASTN /* 见描述 */#define PRIiFASTN /* 见描述 */#define PRIoFASTN /* 见描述 */#define PRIuFASTN /* 见描述 */#define PRIxFASTN /* 见描述 */#define PRIXFASTN /* 见描述 */#define SCNdFASTN /* 见描述 */#define SCNiFASTN /* 见描述 */#define SCNoFASTN /* 见描述 */#define SCNuFASTN /* 见描述 */#define SCNxFASTN /* 见描述 */#define PRIdMAX /* 见描述 */#define PRIiMAX /* 见描述 */#define PRIoMAX /* 见描述 */#define PRIuMAX /* 见描述 */#define PRIxMAX /* 见描述 */#define PRIXMAX /* 见描述 */#define SCNdMAX /* 见描述 */#define SCNiMAX /* 见描述 */#define SCNoMAX /* 见描述 */#define SCNuMAX /* 见描述 */#define SCNxMAX /* 见描述 */#define PRIdPTR /* 见描述 */#define PRIiPTR /* 见描述 */#define PRIoPTR /* 见描述 */#define PRIuPTR /* 见描述 */#define PRIxPTR /* 见描述 */#define PRIXPTR /* 见描述 */#define SCNdPTR /* 见描述 */#define SCNiPTR /* 见描述 */#define SCNoPTR /* 见描述 */#define SCNuPTR /* 见描述 */#define SCNxPTR /* 见描述 */