What do "operators" do?!

Hi everybody,
what is the meaning of these lines in B2TrackerHit.hh file in example B2?

// operators
const B2TrackerHit& operator=(const B2TrackerHit&);
G4bool operator==(const B2TrackerHit&) const;

inline void* operator new(size_t);
inline void  operator delete(void*);

Google “operator overloading in C++”

https://www.tutorialspoint.com/cplusplus/cpp_overloading.htm

1 Like