TMap with struct

I also have trouble following the documentation page, it seem to target more advanced use-cases thus require the using the BaseKeyFuncs template.

What I needed is just a simple map however, and after some heavy Google-ing I at least got my TMap that uses a USTRUCT as key to compile, just by overriding the ==operator and GetTypeHash().
Note I only got it to compile and I still need more testing to check if everything is working ok.

Here are the methods I defined inside my USTRUCT:

bool operator==(const FMyStruct& s) const
{
// return your == definition
}

friend FORCEINLINE uint32 GetTypeHash(const FMyStruct& s)
{
//return your hash definition
}

Would also like to know from more experienced users whether what I done above is correct, thanks.