Pretty Good Sum Type  1.0.0
Public Types | Public Member Functions | List of all members
pgs::recursive_wrapper< T > Class Template Reference

types More...

#include <recursive_wrapper.hpp>

Public Types

typedef T type
 Alias type for T
 

Public Member Functions

template<class... Args>
 recursive_wrapper (Args &&...args)
 Forwarding ctor (heap allocates type instance)
 
 recursive_wrapper (recursive_wrapper const &rhs)
 Copy ctor.
 
 recursive_wrapper (type const &rhs)
 Copy-construct from type
 
 recursive_wrapper (recursive_wrapper &&rhs)
 Move-construct from recursive_wrapper
 
 recursive_wrapper (type &&rhs)
 Move-construct from type
 
 ~recursive_wrapper ()
 Destructor (frees heap-allocated type instance)
 
recursive_wrapperoperator= (recursive_wrapper const &rhs)
 Copy-assign from recursive_wrapper
 
recursive_wrapperoperator= (type const &rhs)
 Copy-assign from type
 
recursive_wrapperoperator= (recursive_wrapper &&rhs) noexcept
 Move-assign from recursive_wrapper
 
recursive_wrapperoperator= (type &&rhs)
 Move-assign from type
 
void swap (recursive_wrapper &rhs) noexcept
 Swap with recursive_wrapper
 
typeget ()
 Accessor to the type instance.
 
type const & get () const
 Accessor to the type instance.
 
typeget_pointer ()
 Accessor to the type instance.
 
type const * get_pointer () const
 Accessor to the type instance.
 

Detailed Description

template<class T>
class pgs::recursive_wrapper< T >

types

Examples:
expression.t.cpp, fibonacci.t.cpp, and sexpr.t.cpp.

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