다음을 통해 공유


lock::operator!=

Inequality operator.

template<class T> bool operator!=(
   T t
);

매개 변수

  • t
    The object to compare for inequality.

반환 값

Returns true if t differs from the lock's object, false otherwise.

예제

// 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!");
   }
}
  

요구 사항

Header file <msclr\lock.h>

Namespace msclr

참고 항목

참조

lock::operator==

기타 리소스

lock 멤버