Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Found_Item< T > Struct Template Referenceabstract

Abstract base class for optional-like results. More...

#include <ahFunctional.H>

Inheritance diagram for Aleph::Found_Item< T >:
[legend]

Public Member Functions

virtual Tget_item ()=0
 
virtual const Tget_item () const =0
 
virtual bool is_found () const noexcept=0
 
virtual ~Found_Item ()=default
 

Detailed Description

template<typename T>
struct Aleph::Found_Item< T >

Abstract base class for optional-like results.

Template Parameters
TItem type.

Definition at line 73 of file ahFunctional.H.

Constructor & Destructor Documentation

◆ ~Found_Item()

template<typename T >
virtual Aleph::Found_Item< T >::~Found_Item ( )
virtualdefault

Member Function Documentation

◆ get_item() [1/2]

template<typename T >
virtual const T & Aleph::Found_Item< T >::get_item ( ) const
pure virtual

Implemented in Aleph::None< T >, and Aleph::Some< T >.

◆ get_item() [2/2]

template<typename T >
virtual T & Aleph::Found_Item< T >::get_item ( )
pure virtual

Implemented in Aleph::None< T >, and Aleph::Some< T >.

◆ is_found()

template<typename T >
virtual bool Aleph::Found_Item< T >::is_found ( ) const
pure virtualnoexcept

Implemented in Aleph::None< T >, and Aleph::Some< T >.


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