C言語/標準ライブラリ/iso646.h

出典: フリー教科書『ウィキブックス(Wikibooks)』

ヘッダー<iso646.h> は、代替つづりマクロを提供します[1]

<iso646.h> は、フリースタンディング環境で使える標準ライブラリの1つです[2]

マクロ[編集]

<iso646.h> では、以下の11個のマクロが定義されています[1]

定義されるマクロと値。
#define and     &&
#define and_eq  &=
#define bitand  &
#define bitor   |
#define compl   ~
#define not     !
#define not_eq  !=
#define or      ||
#define or_eq   |=
#define xor     ^
#define xor_eq  ^=

これらのマクロはC++では予約語となっています。

歴史[編集]

<iso646.h> は、ISO/IEC 9899/AMD1:1995 (C95)で追加されました。

脚註[編集]

  1. ^ 1.0 1.1 C11: WG14/N1570 Committee Draft — April 12, 2011 ISO/IEC 9899:201x. ISO/IEC. p. 202, §7.9 Alternative spellings. http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf. 
  2. ^ C11: WG14/N1570 Committee Draft — April 12, 2011 ISO/IEC 9899:201x. ISO/IEC. p. 8, § 4. Conformance. http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf. 

参考文献[編集]