Hello,
I have been provided a source to work with. And what it does is it patches a raw binary file.
I looked at the source and there is this function which can patch a float, byte or dword to an address. But the source for it is missing. My question is how can I make this function again?

I know it uses some operator overloading function and it can easily patch the variable and the exact size we would want. But I searched the net for every references but all has been in vain. So can you please help me out to recreate this function?

Examples:
InstallPatch<BYTE>(0x234, 0xFF);
InstallPatch<DWORD>(0x254, 12345);
InstallPatch<FLOAT>(0x839, 12.0f);

My interpretation of it prototype:
InstallPatch<DATA_TYPE>(ADDRESS, VALUE_ACCORDING_TO_DATA_TYPE)