List Of Store Unique_Ptr In Queue References. ++i) { p [i] = i; The only recommendation i would make is to use make_unique for construction: How to create…