Standard library header <cstddef>
From cppreference.net
Cet en-tête était à l'origine dans la bibliothèque standard C sous le nom de <stddef.h> .
Cet en-tête fait partie de la bibliothèque utility .
Macros |
||
|
constante de pointeur nul définie par l'implémentation
(macro constante) |
||
|
décalage en octets depuis le début d'un type
standard-layout
jusqu'au membre spécifié
(macro fonction) |
||
Types |
||
|
type entier non signé retourné par l'opérateur
sizeof
(typedef) |
||
|
type entier signé retourné lors de la soustraction de deux pointeurs
(typedef) |
||
|
(C++11)
|
type du littéral de pointeur nul
nullptr
(typedef) |
|
|
(C++11)
|
type trivial avec une exigence d'alignement aussi grande que tout autre type scalaire
(typedef) |
|
|
(C++17)
|
le type byte
(enum) |
|
Fonctions |
||
|
(C++17)
|
convertir
std::byte
en entier
(modèle de fonction) |
|
Synopsis
namespace std { using ptrdiff_t = /* voir description */; using size_t = /* voir description */; using max_align_t = /* voir description */; using nullptr_t = decltype(nullptr); enum class byte : unsigned char {}; // opérations sur le type byte template<class IntType> constexpr byte& operator<<=(byte& b, IntType shift) noexcept; template<class IntType> constexpr byte operator<<(byte b, IntType shift) noexcept; template<class IntType> constexpr byte& operator>>=(byte& b, IntType shift) noexcept; template<class IntType> constexpr byte operator>>(byte b, IntType shift) noexcept; constexpr byte& operator|=(byte& l, byte r) noexcept; constexpr byte operator|(byte l, byte r) noexcept; constexpr byte& operator&=(byte& l, byte r) noexcept; constexpr byte operator&(byte l, byte r) noexcept; constexpr byte& operator^=(byte& l, byte r) noexcept; constexpr byte operator^(byte l, byte r) noexcept; constexpr byte operator~(byte b) noexcept; template<class IntType> constexpr IntType to_integer(byte b) noexcept; } #define NULL /* voir description */ #define offsetof(P, D) /* voir description */