Lumiera  0.pre.03
»edit your freedom«
ItemWrapper< TY & > Class Template Reference

#include "lib/wrapper.hpp"

Description

template<typename TY>
class lib::wrapper::ItemWrapper< TY & >

Specialisation of the ItemWrapper to deal with references, as if they were pointer values.

Allows the reference value to be default constructed to ⟂ (invalid) and to be re-assigned.

Definition at line 282 of file wrapper.hpp.

Public Member Functions

 ItemWrapper (TY &o)
 
ItemWrapperdefaultInit ()
 
bool isValid () const
 
 operator bool () const
 
TY & operator* () const
 
ItemWrapperoperator= (TY &otherRef)
 allow to re-bind the reference
 
void reset ()
 

Private Attributes

TY * content_
 
+ Collaboration diagram for ItemWrapper< TY & >:

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