array multiplication

How to concatenate a array with itself m times in C++? Its very easy in python,but I want to know in C++.
Example- [1 1]. I want to concatenate 2 times, it becomes [1 1 1 1]

Just use loop and concatenate…

make an array of length size*m and then fill ith(1,2,3…N) index with jth index of original array. j=i mod size.