/home/ntakagi/work/STLport-5.1.5/src/aligned_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 Mon Mar 10 15:32:15 2008 by  doxygen 1.5.1