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-7.6.0 platform/shared/stlport/src/aligned_buffer.h
rhodes-7.5.1 platform/shared/stlport/src/aligned_buffer.h
rhodes-7.4.1 platform/shared/stlport/src/aligned_buffer.h
rhodes-7.1.17 platform/shared/stlport/src/aligned_buffer.h
rhodes-6.2.0 platform/shared/stlport/src/aligned_buffer.h
rhodes-6.0.11 platform/shared/stlport/src/aligned_buffer.h
rhodes-5.5.18 platform/shared/stlport/src/aligned_buffer.h
rhodes-5.5.17 platform/shared/stlport/src/aligned_buffer.h
rhodes-5.5.15 platform/shared/stlport/src/aligned_buffer.h
rhodes-5.5.0.22 platform/shared/stlport/src/aligned_buffer.h
rhodes-5.5.2 platform/shared/stlport/src/aligned_buffer.h
rhodes-5.5.0.7 platform/shared/stlport/src/aligned_buffer.h
rhodes-5.5.0.3 platform/shared/stlport/src/aligned_buffer.h
rhodes-5.5.0 platform/shared/stlport/src/aligned_buffer.h
tauplatform-1.0.3 platform/shared/stlport/src/aligned_buffer.h
tauplatform-1.0.2 platform/shared/stlport/src/aligned_buffer.h
tauplatform-1.0.1 platform/shared/stlport/src/aligned_buffer.h
rhodes-3.5.1.12 platform/shared/stlport/src/aligned_buffer.h
rhodes-3.3.5 platform/shared/stlport/src/aligned_buffer.h
rhodes-3.4.2 platform/shared/stlport/src/aligned_buffer.h