clang 22.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::UnsignedOrNone Struct Reference

#include "clang/Basic/UnsignedOrNone.h"

Public Member Functions

constexpr UnsignedOrNone (std::nullopt_t)
 
 UnsignedOrNone (unsigned Val)
 
 UnsignedOrNone (int)=delete
 
constexpr unsigned toInternalRepresentation () const
 
constexpr operator bool () const
 
unsigned operator* () const
 

Static Public Member Functions

static constexpr UnsignedOrNone fromInternalRepresentation (unsigned Rep)
 

Friends

constexpr bool operator== (UnsignedOrNone LHS, UnsignedOrNone RHS)
 
constexpr bool operator!= (UnsignedOrNone LHS, UnsignedOrNone RHS)
 

Detailed Description

Definition at line 22 of file UnsignedOrNone.h.

Constructor & Destructor Documentation

◆ UnsignedOrNone() [1/3]

constexpr clang::UnsignedOrNone::UnsignedOrNone ( std::nullopt_t  )
inlineconstexpr

Definition at line 23 of file UnsignedOrNone.h.

◆ UnsignedOrNone() [2/3]

clang::UnsignedOrNone::UnsignedOrNone ( unsigned  Val)
inline

Definition at line 24 of file UnsignedOrNone.h.

◆ UnsignedOrNone() [3/3]

clang::UnsignedOrNone::UnsignedOrNone ( int  )
delete

Member Function Documentation

◆ fromInternalRepresentation()

static constexpr UnsignedOrNone clang::UnsignedOrNone::fromInternalRepresentation ( unsigned  Rep)
inlinestaticconstexpr

◆ operator bool()

constexpr clang::UnsignedOrNone::operator bool ( ) const
inlineexplicitconstexpr

Definition at line 32 of file UnsignedOrNone.h.

◆ operator*()

unsigned clang::UnsignedOrNone::operator* ( ) const
inline

Definition at line 33 of file UnsignedOrNone.h.

◆ toInternalRepresentation()

constexpr unsigned clang::UnsignedOrNone::toInternalRepresentation ( ) const
inlineconstexpr

Friends And Related Function Documentation

◆ operator!=

constexpr bool operator!= ( UnsignedOrNone  LHS,
UnsignedOrNone  RHS 
)
friend

Definition at line 41 of file UnsignedOrNone.h.

◆ operator==

constexpr bool operator== ( UnsignedOrNone  LHS,
UnsignedOrNone  RHS 
)
friend

Definition at line 38 of file UnsignedOrNone.h.


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