Drake
drake_optional.h File Reference

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

#include "drake/common/drake_compat.h"
#include "drake/thirdParty/boost/tcbrindle_cpp17_headers/stx/optional.hpp"
Include dependency graph for drake_optional.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 drake
 

Typedefs

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

Variables

constexpr auto nullopt = stx::nullopt
 

Detailed Description

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

(The alias is selected preferentially in that order, so the most widely-compatible implementation will always be used.)