Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      Standard library header <cstdarg>

      From cppreference.com
      <cpp‎ |header
       
       
      Standard library headers
       

      This header was originally in the C standard library as<stdarg.h>.

      This header provides support forC-style variadic functions, while theC definition of "default argument promotions" is replaced with theC++ definition.

      Contents

      Types

      holds the information needed byva_start,va_arg,va_end, andva_copy
      (typedef)[edit]

      Macros

      enables access to variadic function arguments
      (function macro)[edit]
      accesses the next variadic function argument
      (function macro)[edit]
      (C++11)
      makes a copy of the variadic function arguments
      (function macro)[edit]
      ends traversal of the variadic function arguments
      (function macro)[edit]

      [edit]Synopsis

      namespace std{usingva_list=/*see description*/;}#define va_arg(V, P) /*see description*/#define va_copy(VDST, VSRC) /*see description*/#define va_end(V) /*see description*/#define va_start(V, P) /*see description*/

      [edit]Defect reports

      The following behavior-changing defect reports were applied retroactively to previously published C++ standards.

      DRApplied toBehavior as publishedCorrect behavior
      CWG 2645C++98C++ defines "default argument promotions", but its C definition was usedthe C++ definition overrides the C definition
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/header/cstdarg&oldid=146662"

      [8]ページ先頭

      ©2009-2025 Movatter.jp