Indenting CPP Public and Private

So I've been looking into the auto indent and trying to figure out how it works, however I'm still fairly new to this so I can't quite figure out how to have the public: and private: modifiers in CPP classes to indent on the next line. Any help?