C++ to bool argument (hoge==0)

Asked 2 years ago, Updated 2 years ago, 33 views

Sorry for the rudimentary question, but
As a member variable of the HOGE class,

const pool abc;

is declared
Constructor HOGE

abc(hoge1&hoge2)==0);

describes the .

Is this only bool abc initialized with 0?
Or does it mean something completely different?

c++

2022-09-30 16:17

1 Answers

The value of the expression (hoge1&hoge2)==0 (which is either true or false) is the value of abc.

In other words, if the value of (hoge1&hoge2) is 0, the value of abc is true, otherwise false.


2022-09-30 16:17

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.