ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

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 Fri May 25 2012 04:33:37 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.