Is it absolutely necessary for std::any_cast() and std::get_if(std::variant) to take pointer as an argument?
Why Do std any cast and std get if Work with Pointers A Deep Dive into C Type Safety The C standard library offers powerful tools like std any and std variant f