ReactOS 0.4.15-dev-7887-g64a59a1
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
6template<class T>
8 char buf[sizeof(T)];
9 struct { double a; double b; } padding;
10
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
#define __REINTERPRET_CAST(__x, __y)
Definition: features.h:586
#define _STLP_BEGIN_NAMESPACE
Definition: features.h:501
#define _STLP_END_NAMESPACE
Definition: features.h:503
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define T
Definition: mbstring.h:31
T const * operator&() const
struct _Stl_aligned_buffer::@4271 padding