다음을 통해 공유


lock::operator==

Equality operator.

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

매개 변수

  • t
    같은지 비교할 개체입니다.

반환 값

Returns true if t is the same as the lock's object, false otherwise.

예제

// msl_lock_op_eq.cpp
// compile with: /clr
#include <msclr/lock.h>

using namespace System;
using namespace System::Threading;
using namespace msclr;

int main () {
   Object^ o1 = gcnew Object;
   lock l1(o1);
   if (l1 == o1) {
      Console::WriteLine("Equal!");
   }
}
  

요구 사항

Header file <msclr\lock.h>

Namespace msclr

참고 항목

참조

lock::operator!=

기타 리소스

lock 멤버