Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenaligned_buffer.h
Go to the documentation of this file.
00001 #ifndef ALIGNED_BUFFER_H 00002 #define ALIGNED_BUFFER_H 00003 00004 _STLP_BEGIN_NAMESPACE 00005 // this is for fake initialization 00006 template<class T> 00007 union _Stl_aligned_buffer { 00008 char buf[sizeof(T)]; 00009 struct { double a; double b; } padding; 00010 00011 T* operator&() { 00012 return __REINTERPRET_CAST(T*, this); 00013 } 00014 00015 T const* operator&() const { 00016 return __REINTERPRET_CAST(T const*, this); 00017 } 00018 }; 00019 _STLP_END_NAMESPACE 00020 00021 #endif Generated on Fri May 25 2012 04:33:37 for ReactOS by
1.7.6.1
|