dimanche 3 septembre 2017

C++11 class member initialization

Just switched to C++11 from C++03, and I was wondering, is the following defined to always zero initialize the array data for all elements?

template<size_t COUNT>
class Test {
public:
    uint32 data[COUNT] = {};
};

Aucun commentaire:

Enregistrer un commentaire