mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
13 lines
349 B
C++
13 lines
349 B
C++
#ifndef TEST_INTEROP_CXX_STDLIB_INPUTS_STD_OPTIONAL_H
|
|
#define TEST_INTEROP_CXX_STDLIB_INPUTS_STD_OPTIONAL_H
|
|
|
|
#include <optional>
|
|
|
|
using CxxOptional = std::optional<int>;
|
|
|
|
inline CxxOptional getNonNilOptional() { return {123}; }
|
|
|
|
inline CxxOptional getNilOptional() { return {std::nullopt}; }
|
|
|
|
#endif // TEST_INTEROP_CXX_STDLIB_INPUTS_STD_OPTIONAL_H
|