Otclient  14/8/2020
stdext::packed_any Class Reference

#include <packed_any.h>

Collaboration diagram for stdext::packed_any:

Classes

struct  holder
 
struct  placeholder
 

Public Member Functions

 packed_any ()
 
 packed_any (const packed_any &other)
 
template<typename T >
 packed_any (const T &value, typename std::enable_if<(can_pack_in_any< T >::value)>::type *=nullptr)
 
template<typename T >
 packed_any (const T &value, typename std::enable_if<!(can_pack_in_any< T >::value)>::type *=nullptr)
 
 ~packed_any ()
 
packed_anyswap (packed_any &rhs)
 
template<typename T >
packed_anyoperator= (const T &rhs)
 
packed_anyoperator= (packed_any rhs)
 
bool empty () const
 
template<typename T >
cast () const
 
const std::type_info & type () const
 

Public Attributes

placeholdercontent
 
bool scalar
 

Detailed Description

Definition at line 41 of file packed_any.h.

Constructor & Destructor Documentation

◆ packed_any() [1/4]

stdext::packed_any::packed_any ( )
inline

Definition at line 62 of file packed_any.h.

◆ packed_any() [2/4]

stdext::packed_any::packed_any ( const packed_any other)
inline

Definition at line 64 of file packed_any.h.

◆ packed_any() [3/4]

template<typename T >
stdext::packed_any::packed_any ( const T &  value,
typename std::enable_if<(can_pack_in_any< T >::value)>::type = nullptr 
)
inline

Definition at line 68 of file packed_any.h.

◆ packed_any() [4/4]

template<typename T >
stdext::packed_any::packed_any ( const T &  value,
typename std::enable_if<!(can_pack_in_any< T >::value)>::type = nullptr 
)
inline

Definition at line 71 of file packed_any.h.

◆ ~packed_any()

stdext::packed_any::~packed_any ( )
inline

Definition at line 73 of file packed_any.h.

Member Function Documentation

◆ cast()

template<typename T >
T stdext::packed_any::cast

Definition at line 110 of file packed_any.h.

◆ empty()

bool stdext::packed_any::empty ( ) const
inline

Definition at line 81 of file packed_any.h.

◆ operator=() [1/2]

template<typename T >
packed_any& stdext::packed_any::operator= ( const T &  rhs)
inline

Definition at line 78 of file packed_any.h.

Here is the call graph for this function:

◆ operator=() [2/2]

packed_any& stdext::packed_any::operator= ( packed_any  rhs)
inline

Definition at line 79 of file packed_any.h.

Here is the call graph for this function:

◆ swap()

packed_any& stdext::packed_any::swap ( packed_any rhs)
inline

Definition at line 76 of file packed_any.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ type()

const std::type_info& stdext::packed_any::type ( ) const
inline

Definition at line 83 of file packed_any.h.

Here is the caller graph for this function:

Member Data Documentation

◆ content

placeholder* stdext::packed_any::content

Definition at line 59 of file packed_any.h.

◆ scalar

bool stdext::packed_any::scalar

Definition at line 60 of file packed_any.h.


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