Is there any method to check if an object has member? #13
-
I've tried, but it doesn't seem be the correct method:
Of course, the condition is true, and that will print the string, but after call the is_null(), the obj has a member "abc"
|
Beta Was this translation helpful? Give feedback.
Answered by
yosh-matsuda
Mar 1, 2024
Replies: 1 comment 1 reply
-
@tuongbuimtt Check the key of each member using the object iterator or use the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
yosh-matsuda
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@tuongbuimtt Check the key of each member using the object iterator or use the
contains
andfind
methods added in v0.4.0. These behave like STL.