BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Static Public Member Functions | List of all members
fc::if_enum< T, std::enable_if_t< std::is_enum< T >::value > > Struct Template Reference

#include <variant.hpp>

Static Public Member Functions

static void to_variant (const T &o, fc::variant &v, uint32_t max_depth=1)
 
static void from_variant (const fc::variant &v, T &o, uint32_t max_depth=1)
 

Detailed Description

template<typename T>
struct fc::if_enum< T, std::enable_if_t< std::is_enum< T >::value > >

Definition at line 85 of file variant.hpp.

Member Function Documentation

◆ from_variant()

template<typename T >
static void fc::if_enum< T, std::enable_if_t< std::is_enum< T >::value > >::from_variant ( const fc::variant v,
T &  o,
uint32_t  max_depth = 1 
)
inlinestatic

Definition at line 91 of file variant.hpp.

◆ to_variant()

template<typename T >
static void fc::if_enum< T, std::enable_if_t< std::is_enum< T >::value > >::to_variant ( const T &  o,
fc::variant v,
uint32_t  max_depth = 1 
)
inlinestatic

Definition at line 87 of file variant.hpp.


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