forpy  2
forpy::Empty Struct Reference

A struct to represent an empty variant. More...

#include <storage.h>

Public Member Functions

template<typename Archive >
void serialize (Archive &, const uint &)
 
bool operator== (const Empty &) const
 
float * data () const
 
size_t & innerStride () const
 
size_t & outerStride () const
 

Friends

std::ostream & operator<< (std::ostream &stream, const Empty &)
 

Detailed Description

A struct to represent an empty variant.

This is necessary because the first variant type must be default constructible. For types for which this is not possible, this 'empty' type can be used.

Definition at line 67 of file storage.h.

Member Function Documentation

◆ data()

float* forpy::Empty::data ( ) const
inline

Definition at line 71 of file storage.h.

◆ innerStride()

size_t& forpy::Empty::innerStride ( ) const
inline

Definition at line 74 of file storage.h.

◆ operator==()

bool forpy::Empty::operator== ( const Empty ) const
inline

Definition at line 70 of file storage.h.

◆ outerStride()

size_t& forpy::Empty::outerStride ( ) const
inline

Definition at line 77 of file storage.h.

◆ serialize()

template<typename Archive >
void forpy::Empty::serialize ( Archive &  ,
const uint  
)
inline

Definition at line 69 of file storage.h.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  stream,
const Empty  
)
friend

Definition at line 80 of file storage.h.


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