ReactOS  0.4.14-dev-384-g5b37caa
aligned_buffer.h
Go to the documentation of this file.
1 #ifndef ALIGNED_BUFFER_H
2 #define ALIGNED_BUFFER_H
3 
5 // this is for fake initialization
6 template<class T>
8  char buf[sizeof(T)];
9  struct { double a; double b; } padding;
10 
11  T* operator&() {
12  return __REINTERPRET_CAST(T*, this);
13  }
14 
15  T const* operator&() const {
16  return __REINTERPRET_CAST(T const*, this);
17  }
18 };
20 
21 #endif
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define T
Definition: mbstring.h:31
#define __REINTERPRET_CAST(__x, __y)
Definition: features.h:586
#define _STLP_END_NAMESPACE
Definition: features.h:503
#define _STLP_BEGIN_NAMESPACE
Definition: features.h:501
struct _Stl_aligned_buffer::@3900 padding