Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
util::Either< X, Y > Class Template Reference
Inheritance diagram for util::Either< X, Y >:
[legend]
Collaboration diagram for util::Either< X, Y >:
[legend]

Public Member Functions

constexpr bool has_left () const
constexpr bool has_right () const
X & left ()
Y & right ()
const X & left () const
const Y & right () const

Detailed Description

template<class X, class Y>
class util::Either< X, Y >

Definition at line 525 of file utility.h.

Member Function Documentation

◆ has_left()

template<class X, class Y>
bool util::Either< X, Y >::has_left ( ) const
inlineconstexpr

Definition at line 529 of file utility.h.

◆ has_right()

template<class X, class Y>
bool util::Either< X, Y >::has_right ( ) const
inlineconstexpr

Definition at line 533 of file utility.h.

◆ left() [1/2]

template<class X, class Y>
X & util::Either< X, Y >::left ( )
inline

Definition at line 537 of file utility.h.

◆ left() [2/2]

template<class X, class Y>
const X & util::Either< X, Y >::left ( ) const
inline

Definition at line 545 of file utility.h.

◆ right() [1/2]

template<class X, class Y>
Y & util::Either< X, Y >::right ( )
inline

Definition at line 541 of file utility.h.

◆ right() [2/2]

template<class X, class Y>
const Y & util::Either< X, Y >::right ( ) const
inline

Definition at line 549 of file utility.h.


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