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.4.0 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.4.0.beta.2 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.4.0.beta.1 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.3.2 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.3.2.beta.2 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.3.2.beta.1 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.3.1 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.3.1.beta.1 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.3.0 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.3.0.beta.3 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.3.0.beta.2 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.3.0.beta.1 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.2.6 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.2.6.beta.1 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.2.5 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.2.5.beta.3 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.2.5.beta.2 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.2.5.beta.1 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.2.4.beta.1 platform/shared/stlport/src/aligned_buffer.h
rhodes-2.2.3 platform/shared/stlport/src/aligned_buffer.h