template-project-cpp
Loading...
Searching...
No Matches
tpcpp::Box< T > Class Template Reference

Boxing for all tpcpp::Expr classes. More...

#include <parsing/Box.hpp>

Public Member Functions

 Box (T &&obj)
 Automatic construction from a T, not a T*
 
 Box (const Box &other)
 Copy constructor copies T
 
T & operator* ()
 Access propagates constness.
 

Detailed Description

template<typename T>
class tpcpp::Box< T >

Boxing for all tpcpp::Expr classes.

The Box class provides a value-like semantics.

Note
Stolen from: https://www.foonathan.net/2022/05/recursive-variant-box/

Definition at line 13 of file Box.hpp.


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