mardi 15 mars 2022

Is it possible to write a function that changes based on the template type?

I'm trying to create a class that can generate a random variable. I want to be able to generate any random type based on the templated value at runtime. I figured I can do this by making this function works for ints, strings, and double data types by coding each one specifically.

Aucun commentaire:

Enregistrer un commentaire