proxygen
Optional.h File Reference
#include <cstddef>
#include <functional>
#include <new>
#include <stdexcept>
#include <type_traits>
#include <utility>
#include <folly/Portability.h>
#include <folly/Traits.h>
#include <folly/Utility.h>
#include <folly/lang/Exception.h>

Go to the source code of this file.

Classes

class  folly::Optional< Value >
 
struct  folly::detail::OptionalPromiseReturn< Value >
 
struct  folly::None
 
class  folly::OptionalEmptyException
 
class  folly::Optional< Value >
 
struct  folly::Optional< Value >::PrivateConstructor
 
struct  folly::Optional< Value >::StorageTriviallyDestructible
 
struct  folly::Optional< Value >::StorageNonTriviallyDestructible
 
struct  hash< folly::Optional< T > >
 

Namespaces

 folly
 —— Concurrent Priority Queue Implementation ——
 
 folly::detail
 

Functions

template<class T >
const Tfolly::get_pointer (const Optional< T > &opt)
 
template<class T >
Tfolly::get_pointer (Optional< T > &opt)
 
template<class T >
void folly::swap (Optional< T > &a, Optional< T > &b) noexcept(noexcept(a.swap(b)))
 
template<class T >
constexpr Optional< _t< std::decay< T > > > folly::make_optional (T &&v)
 
template<class T , class... Args>
constexpr folly::Optional< Tfolly::make_optional (Args &&...args)
 
template<class T , class U , class... Args>
constexpr folly::Optional< Tfolly::make_optional (std::initializer_list< U > il, Args &&...args)
 
template<class U , class V >
constexpr bool folly::operator== (const Optional< U > &a, const V &b)
 
template<class U , class V >
constexpr bool folly::operator!= (const Optional< U > &a, const V &b)
 
template<class U , class V >
constexpr bool folly::operator== (const U &a, const Optional< V > &b)
 
template<class U , class V >
constexpr bool folly::operator!= (const U &a, const Optional< V > &b)
 
template<class U , class V >
FOLLY_CPP14_CONSTEXPR bool folly::operator== (const Optional< U > &a, const Optional< V > &b)
 
template<class U , class V >
constexpr bool folly::operator!= (const Optional< U > &a, const Optional< V > &b)
 
template<class U , class V >
FOLLY_CPP14_CONSTEXPR bool folly::operator< (const Optional< U > &a, const Optional< V > &b)
 
template<class U , class V >
constexpr bool folly::operator> (const Optional< U > &a, const Optional< V > &b)
 
template<class U , class V >
constexpr bool folly::operator<= (const Optional< U > &a, const Optional< V > &b)
 
template<class U , class V >
constexpr bool folly::operator>= (const Optional< U > &a, const Optional< V > &b)
 
template<class V >
bool folly::operator< (const Optional< V > &, const V &other)=delete
 
template<class V >
bool folly::operator<= (const Optional< V > &, const V &other)=delete
 
template<class V >
bool folly::operator>= (const Optional< V > &, const V &other)=delete
 
template<class V >
bool folly::operator> (const Optional< V > &, const V &other)=delete
 
template<class V >
bool folly::operator< (const V &other, const Optional< V > &)=delete
 
template<class V >
bool folly::operator<= (const V &other, const Optional< V > &)=delete
 
template<class V >
bool folly::operator>= (const V &other, const Optional< V > &)=delete
 
template<class V >
bool folly::operator> (const V &other, const Optional< V > &)=delete
 
template<class V >
constexpr bool folly::operator== (const Optional< V > &a, None) noexcept
 
template<class V >
constexpr bool folly::operator== (None, const Optional< V > &a) noexcept
 
template<class V >
constexpr bool folly::operator< (const Optional< V > &, None) noexcept
 
template<class V >
constexpr bool folly::operator< (None, const Optional< V > &a) noexcept
 
template<class V >
constexpr bool folly::operator> (const Optional< V > &a, None) noexcept
 
template<class V >
constexpr bool folly::operator> (None, const Optional< V > &) noexcept
 
template<class V >
constexpr bool folly::operator<= (None, const Optional< V > &) noexcept
 
template<class V >
constexpr bool folly::operator<= (const Optional< V > &a, None) noexcept
 
template<class V >
constexpr bool folly::operator>= (const Optional< V > &, None) noexcept
 
template<class V >
constexpr bool folly::operator>= (None, const Optional< V > &a) noexcept
 

Variables

constexpr None folly::none {None::_secret::_token}