enum Folders { FA, FB, FC, Folders_MAX = FC }; ContainerClass *m_containers[Folders_MAX + 1]; .... m_containers[FA] = ...; // etc.