Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Latest commit

 

History

History
16 lines (12 loc) · 431 Bytes

emplace_back.md

File metadata and controls

16 lines (12 loc) · 431 Bytes

emplace_back

Description: Constructs and places an element at the end of the vector

Example:

    //creating a vector of 3 elements
    std::vector<triagle> vec{10, 20, 30};

    //function to construct and insert a element at the end of the vector
    vec.emplace_back(40);
    vec.emplace_back(50);

See Sample Code Run Code