As other answers have pointed out, your particular struct
and class
are indistinguishable performance wise (There are slight differences in the scopes of the type names, due to the way you defined your struct). The delineation in C++ is not between struct
and class
, but between types that are POD (plain old data) and types that are not, as explained in this discussion this discussion.
As other answers have pointed out, your particular struct
and class
are indistinguishable performance wise (There are slight differences in the scopes of the type names, due to the way you defined your struct). The delineation in C++ is not between struct
and class
, but between types that are POD (plain old data) and types that are not, as explained in this discussion.
As other answers have pointed out, your particular struct
and class
are indistinguishable performance wise (There are slight differences in the scopes of the type names, due to the way you defined your struct). The delineation in C++ is not between struct
and class
, but between types that are POD (plain old data) and types that are not, as explained in this discussion.
As other answers have pointed out, your particular struct
and class
are indistinguishable performance wise (There are slight differences in the scopes of the type names, due to the way you defined your struct). The delineation in C++ is not between struct
and class
, but between types that are POD (plain old data) and types that are not, as explained in this discussion.