domain_objects is already an array of empty std::shared_ptrs (since std::shared_ptr has a sane default constructor).