Np.asarray in c++

I am new to c++ and have done some OpenCV Coding in python before. In python you use numpy to convert and image into an array containing all of the pixel information. Is there a function liek this for c++?