SPH
Public Member Functions | List of all members
AlignedStorage< Type & > Class Template Reference

Specialization for l-value references, a simple wrapper of ReferenceWrapper with same interface to allow generic usage of AlignedStorage for both values and references. More...

#include <AlignedStorage.h>

Public Member Functions

 AlignedStorage ()=default
 
template<typename T >
INLINE void emplace (T &ref)
 
INLINE void destroy ()
 
constexpr INLINE operator Type & () noexcept
 
constexpr INLINE operator const Type & () const noexcept
 Implicit conversion to stored type, const version. More...
 
constexpr INLINE Type & get () noexcept
 Return the reference to the stored value. More...
 
constexpr INLINE const Type & get () const noexcept
 Returns the reference to the stored value, const version. More...
 

Detailed Description

template<typename Type>
class AlignedStorage< Type & >

Specialization for l-value references, a simple wrapper of ReferenceWrapper with same interface to allow generic usage of AlignedStorage for both values and references.

Definition at line 98 of file AlignedStorage.h.

Constructor & Destructor Documentation

◆ AlignedStorage()

template<typename Type >
AlignedStorage< Type & >::AlignedStorage ( )
default

Member Function Documentation

◆ destroy()

template<typename Type >
INLINE void AlignedStorage< Type & >::destroy ( )
inline

Definition at line 112 of file AlignedStorage.h.

◆ emplace()

template<typename Type >
template<typename T >
INLINE void AlignedStorage< Type & >::emplace ( T &  ref)
inline

Definition at line 107 of file AlignedStorage.h.

◆ get() [1/2]

template<typename Type >
constexpr INLINE const Type& AlignedStorage< Type & >::get ( ) const
inlineconstexprnoexcept

Returns the reference to the stored value, const version.

Definition at line 129 of file AlignedStorage.h.

◆ get() [2/2]

template<typename Type >
constexpr INLINE Type& AlignedStorage< Type & >::get ( )
inlineconstexprnoexcept

Return the reference to the stored value.

Definition at line 124 of file AlignedStorage.h.

◆ operator const Type &()

template<typename Type >
constexpr INLINE AlignedStorage< Type & >::operator const Type & ( ) const
inlineconstexprnoexcept

Implicit conversion to stored type, const version.

Definition at line 119 of file AlignedStorage.h.

◆ operator Type &()

template<typename Type >
constexpr INLINE AlignedStorage< Type & >::operator Type & ( )
inlineconstexprnoexcept

Definition at line 114 of file AlignedStorage.h.


The documentation for this class was generated from the following file: