LLVM  15.0.0git
Public Member Functions | List of all members
llvm::optional_detail::OptionalStorage< T, true > Class Template Reference

#include "llvm/ADT/Optional.h"

Collaboration diagram for llvm::optional_detail::OptionalStorage< T, true >:
Collaboration graph
[legend]

Public Member Functions

 ~OptionalStorage ()=default
 
constexpr OptionalStorage () noexcept
 
constexpr OptionalStorage (OptionalStorage const &other)=default
 
constexpr OptionalStorage (OptionalStorage &&other)=default
 
OptionalStorageoperator= (OptionalStorage const &other)=default
 
OptionalStorageoperator= (OptionalStorage &&other)=default
 
template<class... Args>
constexpr OptionalStorage (in_place_t, Args &&... args)
 
void reset () noexcept
 
constexpr bool hasValue () const noexcept
 
TgetValue () &noexcept
 
constexpr const TgetValue () const &noexcept
 
T && getValue () &&noexcept
 
template<class... Args>
void emplace (Args &&...args)
 
OptionalStorageoperator= (T const &y)
 
OptionalStorageoperator= (T &&y)
 

Detailed Description

template<typename T>
class llvm::optional_detail::OptionalStorage< T, true >

Definition at line 163 of file Optional.h.

Constructor & Destructor Documentation

◆ ~OptionalStorage()

template<typename T >
llvm::optional_detail::OptionalStorage< T, true >::~OptionalStorage ( )
default

◆ OptionalStorage() [1/4]

template<typename T >
constexpr llvm::optional_detail::OptionalStorage< T, true >::OptionalStorage ( )
inlineconstexprnoexcept

Definition at line 173 of file Optional.h.

◆ OptionalStorage() [2/4]

template<typename T >
constexpr llvm::optional_detail::OptionalStorage< T, true >::OptionalStorage ( OptionalStorage< T, true > const other)
constexprdefault

◆ OptionalStorage() [3/4]

template<typename T >
constexpr llvm::optional_detail::OptionalStorage< T, true >::OptionalStorage ( OptionalStorage< T, true > &&  other)
constexprdefault

◆ OptionalStorage() [4/4]

template<typename T >
template<class... Args>
constexpr llvm::optional_detail::OptionalStorage< T, true >::OptionalStorage ( in_place_t  ,
Args &&...  args 
)
inlineexplicitconstexpr

Definition at line 182 of file Optional.h.

Member Function Documentation

◆ emplace()

template<typename T >
template<class... Args>
void llvm::optional_detail::OptionalStorage< T, true >::emplace ( Args &&...  args)
inline

◆ getValue() [1/3]

template<typename T >
T&& llvm::optional_detail::OptionalStorage< T, true >::getValue ( ) &&
inlinenoexcept

◆ getValue() [2/3]

template<typename T >
T& llvm::optional_detail::OptionalStorage< T, true >::getValue ( ) &
inlinenoexcept

Definition at line 194 of file Optional.h.

References assert(), T, and llvm::optional_detail::OptionalStorage< T, bool >::value.

◆ getValue() [3/3]

template<typename T >
constexpr const T& llvm::optional_detail::OptionalStorage< T, true >::getValue ( ) const &
inlineconstexprnoexcept

Definition at line 198 of file Optional.h.

References assert(), T, and llvm::optional_detail::OptionalStorage< T, bool >::value.

◆ hasValue()

template<typename T >
constexpr bool llvm::optional_detail::OptionalStorage< T, true >::hasValue ( ) const
inlineconstexprnoexcept

Definition at line 192 of file Optional.h.

◆ operator=() [1/4]

template<typename T >
OptionalStorage& llvm::optional_detail::OptionalStorage< T, true >::operator= ( OptionalStorage< T, true > &&  other)
default

◆ operator=() [2/4]

template<typename T >
OptionalStorage& llvm::optional_detail::OptionalStorage< T, true >::operator= ( OptionalStorage< T, true > const other)
default

◆ operator=() [3/4]

template<typename T >
OptionalStorage& llvm::optional_detail::OptionalStorage< T, true >::operator= ( T &&  y)
inline

◆ operator=() [4/4]

template<typename T >
OptionalStorage& llvm::optional_detail::OptionalStorage< T, true >::operator= ( T const y)
inline

◆ reset()

template<typename T >
void llvm::optional_detail::OptionalStorage< T, true >::reset ( )
inlinenoexcept

Member Data Documentation

◆ empty

template<typename T >
char llvm::optional_detail::OptionalStorage< T, true >::empty

Definition at line 165 of file Optional.h.

◆ value

template<typename T >
T llvm::optional_detail::OptionalStorage< T, true >::value

Definition at line 166 of file Optional.h.


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