Consider the following program:
#include #include using namespace std; struct T { int a; double b; string c; };
You can create the struct T instance and then move it to the vector:
struct T
V.push_back(std::move(T {42, 3.14, "foo"}));