Cpp Function Return Array Of Pointers In Struct