Drake
drake_optional.h File Reference

Detailed Description

Provides drake::optional as an alias for the appropriate implementation of std::optional or stx::optional for the C++ toolchain being used.

#include <stx/variant.hpp>
#include <stx/optional.hpp>
Include dependency graph for drake_optional.h:
This graph shows which files directly or indirectly include this file:

Namespaces

 drake
 

Macros

#define STX_NO_STD_OPTIONAL
 
#define STX_NO_STD_VARIANT
 
#define STX_HAVE_IN_PLACE_T   1
 

Typedefs

template<typename T >
using optional = stx::optional< T >
 
using nullopt_t = stx::nullopt_t
 

Variables

constexpr auto nullopt = stx::nullopt
 

Macro Definition Documentation

◆ STX_HAVE_IN_PLACE_T

#define STX_HAVE_IN_PLACE_T   1

◆ STX_NO_STD_OPTIONAL

#define STX_NO_STD_OPTIONAL

◆ STX_NO_STD_VARIANT

#define STX_NO_STD_VARIANT