等値演算子。
template<class T> bool operator!=(
T t
);
パラメーター
- t
非等値を比較するオブジェクト。
戻り値
t がロック オブジェクトと異なる場合 true 、別の方法で false を返します。
使用例
// msl_lock_op_ineq.cpp
// compile with: /clr
#include <msclr/lock.h>
using namespace System;
using namespace System::Threading;
using namespace msclr;
int main () {
Object^ o1 = gcnew Object;
Object^ o2 = gcnew Object;
lock l1(o1);
if (l1 != o2) {
Console::WriteLine("Inequal!");
}
}
必要条件
ヘッダー ファイル <msclr \ lock.h>
名前空間 の msclr