ReactOS
0.4.15-dev-2350-g7194f2f
aligned_buffer.h
Go to the documentation of this file.
1
#ifndef ALIGNED_BUFFER_H
2
#define ALIGNED_BUFFER_H
3
4
_STLP_BEGIN_NAMESPACE
5
// this is for fake initialization
6
template
<
class
T>
7
union
_Stl_aligned_buffer
{
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
};
19
_STLP_END_NAMESPACE
20
21
#endif
_Stl_aligned_buffer::padding
struct _Stl_aligned_buffer::@4049 padding
_Stl_aligned_buffer
Definition:
aligned_buffer.h:7
_Stl_aligned_buffer::a
double a
Definition:
aligned_buffer.h:9
T
#define T
Definition:
mbstring.h:31
buf
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition:
glext.h:7751
_Stl_aligned_buffer::b
double b
Definition:
aligned_buffer.h:9
_Stl_aligned_buffer::operator &
T * operator &()
Definition:
aligned_buffer.h:11
__REINTERPRET_CAST
#define __REINTERPRET_CAST(__x, __y)
Definition:
features.h:586
_STLP_END_NAMESPACE
#define _STLP_END_NAMESPACE
Definition:
features.h:503
_STLP_BEGIN_NAMESPACE
#define _STLP_BEGIN_NAMESPACE
Definition:
features.h:501
sdk
lib
3rdparty
stlport
src
aligned_buffer.h
Generated on Thu Apr 15 2021 06:07:50 for ReactOS by
1.8.15