[#Vector] = Vector :mrdocs: Construct a vector with the specified elements. == Synopsis Declared in `<util/vector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename... Args> std::vector<std::common_type_t<Args...>> Vector(Args&&... args); ---- == Description This is preferable over the list initializing constructor of std::vector: * It automatically infers the element type from its arguments. * If any arguments are rvalue references, they will be moved into the vector (list initialization always copies). == Return Value A vector whose element type is the common type of the arguments. == Parameters [cols="1,4"] |=== | Name| Description | *args* | The elements to place into the vector, in order. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#