Is it possible to use std:fill to fill an array of unique_ptrs? The intention is to have distinct pointers to distinct objects which are initialize
std:fill
unique_ptr
Another solution:
std::unique_ptr ar[3]; size_t i; for (i = 0; i < elementsof(ar); ++i) { ar[i].reset(new int); }