본문 바로가기

develop

검색하기
develop
프로필사진 pikachu987

  • 분류 전체보기 (65)
    • iOS (53)
    • Library (5)
    • Algorithm (1)
    • ETC (6)
Guestbook
Recent Posts
Today
Total
Recent Comments
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리
반응형

목록operator (1)

develop

Class Struct == Operator

class나 struct에서 비교연산자를 사용하면 struct Example1 { var value: Int? } let structExample1 = Example1() let structExample2 = Example1() if structExample1 == structExample2 { } class Example2 { var value: Int? } let classExample1 = Example2() let classExample2 = Example2() if classExample1 == classExample2 { } error: binary operator '==' cannot be applied to two 'Example1' operands 라는 에러가 난다. 하지만 struct나..

iOS 2021. 1. 27. 15:31
Prev 1 Next
반응형

Blog is powered by kakao / Designed by Tistory

티스토리툴바