#ifndef TEST_INTEROP_CXX_STDLIB_INPUTS_STD_OPTIONAL_H #define TEST_INTEROP_CXX_STDLIB_INPUTS_STD_OPTIONAL_H #include #include using StdOptionalInt = std::optional; using StdOptionalString = std::optional; inline StdOptionalInt getNonNilOptional() { return {123}; } inline StdOptionalInt getNilOptional() { return {std::nullopt}; } inline bool takesOptionalInt(std::optional arg) { return (bool)arg; } inline bool takesOptionalString(std::optional arg) { return (bool)arg; } #endif // TEST_INTEROP_CXX_STDLIB_INPUTS_STD_OPTIONAL_H