Kagome
Polkadot Runtime Engine in C++17
Box< T > Struct Template Reference

#include <box.hpp>

Collaboration diagram for Box< T >:

Public Types

using Type = T
 

Public Member Functions

template<typename... A>
 Box (A &&...args)
 
 Box (Box &box)
 
 Box (Box &&box)
 
Boxoperator= (Box &val)
 
Boxoperator= (Box &&box)
 
auto clone () const
 
T & mut_value ()&
 
T const & value () const &
 

Private Attributes

std::optional< T > t_
 

Detailed Description

template<typename T>
struct Box< T >

Copyright Soramitsu Co., Ltd. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Definition at line 13 of file box.hpp.

Member Typedef Documentation

template<typename T >
using Box< T >::Type = T

Definition at line 14 of file box.hpp.

Constructor & Destructor Documentation

template<typename T >
template<typename... A>
Box< T >::Box ( A &&...  args)
inlineexplicit

Definition at line 17 of file box.hpp.

template<typename T >
Box< T >::Box ( Box< T > &  box)
inline

Definition at line 18 of file box.hpp.

template<typename T >
Box< T >::Box ( Box< T > &&  box)
inline

Definition at line 20 of file box.hpp.

Member Function Documentation

template<typename T >
auto Box< T >::clone ( ) const
inline

Definition at line 34 of file box.hpp.

template<typename T >
T& Box< T >::mut_value ( )
inline

Definition at line 39 of file box.hpp.

template<typename T >
Box& Box< T >::operator= ( Box< T > &  val)
inline

Definition at line 24 of file box.hpp.

template<typename T >
Box& Box< T >::operator= ( Box< T > &&  box)
inline

Definition at line 28 of file box.hpp.

template<typename T >
T const& Box< T >::value ( ) const
inline

Definition at line 44 of file box.hpp.

Member Data Documentation

template<typename T >
std::optional<T> Box< T >::t_
private

Definition at line 50 of file box.hpp.


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