not
の代わり!演算子。
#define not !
解説
マクロは、演算子が発生します。
使用例
// iso646_not.cpp
// compile with: /EHsc
#include <iostream>
#include <iso646.h>
int main( )
{
using namespace std;
int a = 0;
if (!a)
cout << "a is zero" << endl;
if (not(a))
cout << "a is zero" << endl;
}
必要条件
ヘッダー: <iso646.h>
名前空間: std