D++ (DPP)  10.0.30
C++ Discord API Bot Library
dpp::utility::dummy< T > Struct Template Reference

Utility struct that has the same size and alignment as another but does nothing. More...

#include "utility.h"

Collaboration diagram for dpp::utility::dummy< T >:

Public Attributes

std::array< std::byte, sizeof(T)> data
 Array of bytes with a size mimicking T. More...
 

Detailed Description

template<typename T>
struct dpp::utility::dummy< T >

Utility struct that has the same size and alignment as another but does nothing.

Useful for ABI compatibility.

Template Parameters
TType to mimic

Member Data Documentation

◆ data

template<typename T >
std::array<std::byte, sizeof(T)> dpp::utility::dummy< T >::data

Array of bytes with a size mimicking T.


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