Namespaces
Variants

Standard library header <cstddef>

From cppreference.net
Standard library headers

이 헤더는 원래 C 표준 라이브러리에 <stddef.h> 로 존재했습니다.

이 헤더는 utility 라이브러리의 일부입니다.

목차

매크로

구현 정의 널 포인터 상수
(매크로 상수)
표준 레이아웃 타입의 시작부터 지정된 멤버까지의 바이트 오프셋
(함수 매크로)

타입

sizeof 연산자가 반환하는 부호 없는 정수 타입
(typedef)
두 포인터를 뺄 때 반환되는 부호 있는 정수 타입
(typedef)
(C++11)
널 포인터 리터럴 nullptr 의 타입
(typedef)
다른 모든 스칼라 타입만큼 큰 정렬 요구 사항을 가진 트리비얼 타입
(typedef)
(C++17)
바이트 타입
(enum)

함수

(C++17)
std::byte 를 정수로 변환
(함수 템플릿)

시놉시스

namespace std {
  using ptrdiff_t = /* 설명 참조 */;
  using size_t = /* 설명 참조 */;
  using max_align_t = /* 설명 참조 */;
  using nullptr_t = decltype(nullptr);
  enum class byte : unsigned char {};
  // 바이트 타입 연산
  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 /* 설명 참조 */
#define offsetof(P, D) /* 설명 참조 */

참고 사항