Advertisement
Guest User

Untitled

a guest
Feb 19th, 2018
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. template<class T,class T1,size_t N,size_t M,size_t P,size_t Q>
  2. int ArrayFill(
  3.         T (&array)[N][M][P][Q],           // initialized array
  4.         int start,               // starting index
  5.         int count,               // number of elements to fill
  6.         T1 value                  // value that will be set
  7. ) {
  8.  
  9.     std::fill(array[0][0][0]+start,array[0][0][0]+start+count,value);
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement