What is the process of the CPP code compiler in the figure?

what is the process of the following code compiler? for more information, please see Code

template<typename B, typename D>
class is_base_and_derived {
private:
  template<typename T>
  static int judge(D const *, T);
  static char judge(B const *, int);
  struct host {
    operator D const * () ;
    operator B const * () const ;
  };
public:
  enum { value = (is_same<B, D>::value || sizeof(int) == sizeof(judge(host(), 0))) };
};
CPP
May.14,2022
Menu