What does the syntax *this = {}; do in a class function?

GilbertJobs maanakehumyaarnahii at gmail.com
Wed Sep 18 17:58:08 UTC 2019

Obviously a newer player to C++ here. I figured out that the 
*this is a self referential class pointer, but I'm not really 
sure what the closed braces means. My understanding was that 
braces are usually used for code blocks, but this syntax almost 
looks more like what I'd see in MATLAB for initializing something 
as empty. Specifically, I saw this in a reset function for a 
class - what exactly does this "reset"?

More information about the Digitalmars-d mailing list