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

Represents a found value (stored by reference). More...

#include <ahFunctional.H>

Inheritance diagram for Aleph::Some< T >:
[legend]
Collaboration diagram for Aleph::Some< T >:
[legend]

Public Member Functions

 Some (T &i)
 
virtual Tget_item () override
 
virtual const Tget_item () const override
 
virtual bool is_found () const noexcept override
 
- Public Member Functions inherited from Aleph::Found_Item< T >
virtual ~Found_Item ()=default
 

Public Attributes

Titem
 

Detailed Description

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

Represents a found value (stored by reference).

Definition at line 100 of file ahFunctional.H.

Constructor & Destructor Documentation

◆ Some()

template<typename T >
Aleph::Some< T >::Some ( T i)
inline

Definition at line 104 of file ahFunctional.H.

Member Function Documentation

◆ get_item() [1/2]

template<typename T >
virtual const T & Aleph::Some< T >::get_item ( ) const
inlineoverridevirtual

Implements Aleph::Found_Item< T >.

Definition at line 107 of file ahFunctional.H.

◆ get_item() [2/2]

template<typename T >
virtual T & Aleph::Some< T >::get_item ( )
inlineoverridevirtual

Implements Aleph::Found_Item< T >.

Definition at line 106 of file ahFunctional.H.

Referenced by TEST().

◆ is_found()

template<typename T >
virtual bool Aleph::Some< T >::is_found ( ) const
inlineoverridevirtualnoexcept

Implements Aleph::Found_Item< T >.

Definition at line 108 of file ahFunctional.H.

Referenced by TEST().

Member Data Documentation

◆ item

template<typename T >
T& Aleph::Some< T >::item

Definition at line 102 of file ahFunctional.H.


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