title: Is it possible to use std::fill with a 2d C-style array?
body: <p>Suppose that I have: <code>unsigned char my2darray[A][B];</code></p>
  
  <p>Is it possible to use <code>std::fill</code> to set all values of the 2d array to a non-0 value?</p>
  
  <p>I know a vector can be used but this is performance critical code and I can't afford dynamic allocations. Unfortunately, no C++11 is allowed.</p>
  
  <p>Currently used in the code is <code>memset(my2darray, 0x12, sizeof(my2darray));</code> but I want to replace all <code>memset</code> with <code>std::fill</code> if possible, as the type of the array could become a class in future.</p>
  
  <p>Answers which work for any type, not just chars, appreciated.</p>