Binary Extension
Classes
Type | Name |
---|---|
class | eosio::binary_extension container to hold a binary payload for an extension |
Typedefs
Variables
Type | Name |
---|---|
bool | _has_value |
std::aligned_storage< sizeof(T), alignof(T)>::type | _data |
Functions
Type | Name |
---|---|
constexpr T & | _get () |
constexpr const T & | _get () const |
Detailed Description
Container to hold a binary payload for an extension
Typedefs Documentation
typedef value_type
using eosio::binary_extension< T >::value_type = T;
Variables Documentation
variable _has_value
bool eosio::binary_extension< T >::_has_value;
variable _data
std::aligned_storage<sizeof(T), alignof(T)>::type eosio::binary_extension< T >::_data;
Functions Documentation
function binary_extension
constexpr eosio::binary_extension< T >::binary_extension()
function binary_extension
constexpr eosio::binary_extension< T >::binary_extension(
const T & ext
)
function binary_extension
constexpr eosio::binary_extension< T >::binary_extension(
T && ext
)
function binary_extension
template<typename... Args>
constexpr eosio::binary_extension< T >::binary_extension(
std::in_place_t ,
Args &&... args
)
construct contained type in place
function ~binary_extension
eosio::binary_extension< T >::~binary_extension()
function binary_extension
constexpr eosio::binary_extension< T >::binary_extension(
const binary_extension & other
)
function binary_extension
constexpr eosio::binary_extension< T >::binary_extension(
binary_extension && other
)
function operator bool
explicit constexpr eosio::binary_extension< T >::operator bool() const
test if container is holding a value
function has_value
constexpr bool eosio::binary_extension< T >::has_value() const
test if container is holding a value
function value
constexpr T& eosio::binary_extension< T >::value()
get the contained value
function value
constexpr const T& eosio::binary_extension< T >::value() const
get the contained value
function value_or
template<typename U>
constexpr auto eosio::binary_extension< T >::value_or(
U && def
)
get the contained value or a user specified default
Precondition:
def should be convertible to type T
function value_or
constexpr T&& eosio::binary_extension< T >::value_or()
function value_or
constexpr const T&& eosio::binary_extension< T >::value_or() const
function value_or
constexpr T eosio::binary_extension< T >::value_or()
function value_or
constexpr T eosio::binary_extension< T >::value_or() const
function operator->
constexpr T* eosio::binary_extension< T >::operator->()
function operator->
constexpr const T* eosio::binary_extension< T >::operator->() const
function operator*
constexpr T& eosio::binary_extension< T >::operator*()
function operator*
constexpr const T& eosio::binary_extension< T >::operator*() const
function operator*
constexpr const T&& eosio::binary_extension< T >::operator*() const
function operator*
constexpr T&& eosio::binary_extension< T >::operator*()
function emplace
template<typename ... Args>
T& eosio::binary_extension< T >::emplace(
Args &&... args
)
function reset
void eosio::binary_extension< T >::reset()
function _get
constexpr T& eosio::binary_extension< T >::_get()
function _get
constexpr const T& eosio::binary_extension< T >::_get() const