Sha256: 8401d8c23d1b5528eb862b42456a6ed629049a8ac0bfa22b1051b6bb1078397c

Contents?: true

Size: 398 Bytes

Versions: 135

Compression:

Stored size: 398 Bytes

Contents

#ifndef ALIGNED_BUFFER_H
#define ALIGNED_BUFFER_H

_STLP_BEGIN_NAMESPACE
// this is for fake initialization
template<class T>
union _Stl_aligned_buffer {
  char buf[sizeof(T)];
  struct { double a; double b; } padding;

  T* operator&() {
    return __REINTERPRET_CAST(T*, this);
  }

  T const* operator&() const {
    return __REINTERPRET_CAST(T const*, this);
  }
};
_STLP_END_NAMESPACE

#endif

Version data entries

135 entries across 135 versions & 2 rubygems

Version Path
rhodes-2.0.0.beta7 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.0.0.beta6 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.0.0.beta4 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.0.0.beta3 platform/shared/stlport/src/aligned_buffer.h
rhodes-1.5.5 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.0.0.beta2 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.0.0.beta1 platform/shared/stlport/src/aligned_buffer.h
rhodes-1.5.4 platform/shared/stlport/src/aligned_buffer.h
rhodes-1.5.3 platform/shared/stlport/src/aligned_buffer.h
rhodes-1.5.2 platform/shared/stlport/src/aligned_buffer.h
rhodes-1.5.1 platform/shared/stlport/src/aligned_buffer.h
rhodes-1.5.0 platform/shared/stlport/src/aligned_buffer.h
rhodes-1.4.2 platform/shared/stlport/src/aligned_buffer.h
rhodes-1.4.1 platform/shared/stlport/src/aligned_buffer.h
rhodes-1.4.0 platform/shared/stlport/src/aligned_buffer.h