What is the meaning of the operator int () method in the cPP structure?

I see a structure on boost.DI that I haven"t seen before. What does the method in this structure mean?

struct width {
  int value;
  constexpr operator int() const { return value; }
};
struct height {
  int value;
  constexpr operator int() const { return value; }
};



class button {
public:
  button(width, height); // strong constructor interface
};
button{width{10}, height{15}};
CPP
Mar.01,2021

Type conversion

  reference link  

Menu