title: Initializing structure object using std::fill
body: <p>I have below a structure and need to initialize the object of it using <code>std::fill</code>.</p>
  
  <pre><code>typedef struct _test
  {
      char name[32];
      char key[4];
      int count;
  
  }test;
  </code></pre>
  
  <p>As of now, I am using <code>memset</code>. I need to change it to <code>std::fill</code>. I have tried below but <code>std::fill</code> throws compiler error for the structure object.</p>
  
  <pre><code>test t;
  char a[5];
  std::fill(a, a + 5, 0);
  std::fill(t, sizeof(t), 0);
  </code></pre>
  
  <p>Note: I don't want to initialize using this way. <code>char a[5] = {0};</code></p>