class OptionalStorage
Declaration
template <typename T,
bool =
is_trivially_copyable<type - parameter - 0 - 0>::value>
class OptionalStorage { /* full declaration omitted */ };
Description
Storage for any type.
Declared at: llvm/include/llvm/ADT/Optional.h:36
Templates
- T
- bool = is_trivially_copyable<type-parameter-0-0>::value
Method Overview
- public OptionalStorage<T, >() noexcept
- public OptionalStorage<T, >(const OptionalStorage<T, > & other)
- public OptionalStorage<T, >(OptionalStorage<T, > && other)
- public template <class... Args> OptionalStorage<T, >(llvm::optional_detail::in_place_t, Args &&... args)
- public template <class... Args>void emplace(Args &&... args)
- public T & getValue() & noexcept
- public const T & getValue() const & noexcept
- public T && getValue() && noexcept
- public bool hasValue() const noexcept
- public void reset() noexcept
- public ~OptionalStorage<T, >()
Methods
¶OptionalStorage<T, >() noexcept
OptionalStorage<T, >() noexcept
Declared at: llvm/include/llvm/ADT/Optional.h:46
¶OptionalStorage<T, >(
const OptionalStorage<T, >& other)
OptionalStorage<T, >(
const OptionalStorage<T, >& other)
Declared at: llvm/include/llvm/ADT/Optional.h:48
Parameters
- const OptionalStorage<T, >& other
¶OptionalStorage<T, >(OptionalStorage<T, >&& other)
OptionalStorage<T, >(OptionalStorage<T, >&& other)
Declared at: llvm/include/llvm/ADT/Optional.h:53
Parameters
- OptionalStorage<T, >&& other
¶template <class... Args>
OptionalStorage<T, >(
llvm::optional_detail::in_place_t,
Args&&... args)
template <class... Args>
OptionalStorage<T, >(
llvm::optional_detail::in_place_t,
Args&&... args)
Declared at: llvm/include/llvm/ADT/Optional.h:60
Templates
- Args
Parameters
- llvm::optional_detail::in_place_t
- Args&&... args
¶template <class... Args>
void emplace(Args&&... args)
template <class... Args>
void emplace(Args&&... args)
Declared at: llvm/include/llvm/ADT/Optional.h:87
Templates
- Args
Parameters
- Args&&... args
¶T& getValue() & noexcept
T& getValue() & noexcept
Declared at: llvm/include/llvm/ADT/Optional.h:72
¶const T& getValue() const& noexcept
const T& getValue() const& noexcept
Declared at: llvm/include/llvm/ADT/Optional.h:76
¶T&& getValue() && noexcept
T&& getValue() && noexcept
Declared at: llvm/include/llvm/ADT/Optional.h:81
¶bool hasValue() const noexcept
bool hasValue() const noexcept
Declared at: llvm/include/llvm/ADT/Optional.h:70
¶void reset() noexcept
void reset() noexcept
Declared at: llvm/include/llvm/ADT/Optional.h:63
¶~OptionalStorage<T, >()
~OptionalStorage<T, >()
Declared at: llvm/include/llvm/ADT/Optional.h:44