14#ifndef LLVM_CLANG_BASIC_UNSIGNED_OR_NONE_H
15#define LLVM_CLANG_BASIC_UNSIGNED_OR_NONE_H
28 return {std::nullopt, Rep};
32 explicit constexpr operator bool()
const {
return Rep != 0; }
34 assert(
operator bool());
39 return LHS.Rep == RHS.Rep;
42 return LHS.Rep != RHS.Rep;
46 constexpr UnsignedOrNone(std::nullopt_t,
unsigned Rep) : Rep(Rep) {};
The JSON file list parser is used to communicate input to InstallAPI.
friend constexpr bool operator!=(UnsignedOrNone LHS, UnsignedOrNone RHS)
UnsignedOrNone(unsigned Val)
unsigned operator*() const
UnsignedOrNone(int)=delete
constexpr unsigned toInternalRepresentation() const
static constexpr UnsignedOrNone fromInternalRepresentation(unsigned Rep)
constexpr UnsignedOrNone(std::nullopt_t)
friend constexpr bool operator==(UnsignedOrNone LHS, UnsignedOrNone RHS)