LLVM  7.0.0svn
Public Member Functions | Public Attributes | List of all members
llvm::optional_detail::OptionalStorage< T, true > Struct Template Reference

Storage for trivially copyable types only. More...

#include "llvm/ADT/Optional.h"

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

Public Member Functions

 OptionalStorage ()=default
 
 OptionalStorage (const T &y)
 
OptionalStorageoperator= (const T &y)
 
void reset ()
 

Public Attributes

AlignedCharArrayUnion< Tstorage
 
bool hasVal = false
 

Detailed Description

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

Storage for trivially copyable types only.

Definition at line 113 of file Optional.h.

Constructor & Destructor Documentation

◆ OptionalStorage() [1/2]

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

◆ OptionalStorage() [2/2]

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

Definition at line 119 of file Optional.h.

References llvm::AlignedCharArray< Alignment, Size >::buffer, and T.

Member Function Documentation

◆ operator=()

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

Definition at line 120 of file Optional.h.

References llvm::AlignedCharArray< Alignment, Size >::buffer.

◆ reset()

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

Definition at line 126 of file Optional.h.

Member Data Documentation

◆ hasVal

template<typename T >
bool llvm::optional_detail::OptionalStorage< T, true >::hasVal = false

Definition at line 115 of file Optional.h.

◆ storage

Definition at line 114 of file Optional.h.


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