clang 22.0.0git
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]

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

Definition at line 23 of file UnsignedOrNone.h.

Referenced by fromInternalRepresentation(), operator!=, and operator==.

◆ 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()

◆ operator bool()

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()

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

Definition at line 30 of file UnsignedOrNone.h.

Referenced by clang::SubstTemplateTemplateParmStorage::Profile().

◆ operator!=

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

Definition at line 41 of file UnsignedOrNone.h.

References UnsignedOrNone().

◆ operator==

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

Definition at line 38 of file UnsignedOrNone.h.

References UnsignedOrNone().


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