Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

create a copy of a vector c++

template<typename T>
std::vector<T> create_copy(std::vector<T> const &vec)
{
    std::vector<T> v(vec);
    return v;
}
Source by www.techiedelight.com #
 
PREVIOUS NEXT
Tagged: #create #copy #vector
ADD COMMENT
Topic
Name
6+6 =