isl_test_cpp17-generic.cc: work around std::optional::value issue in older macOS
[isl.git] / include / isl / maybe_templ.h
blob4dac253f6523c09a2013f7bc132e113fca91dec6
1 #include <isl/ctx.h>
2 #include <isl/maybe.h>
4 /* A structure that possibly contains a pointer to an object of type ISL_TYPE.
5 * The pointer in "value" is only valid if "valid" is isl_bool_true.
6 * Otherwise, "value" is set to NULL.
7 */
8 struct ISL_MAYBE(ISL_TYPE) {
9 isl_bool valid;
10 ISL_TYPE *value;
12 typedef struct ISL_MAYBE(ISL_TYPE) ISL_MAYBE(ISL_TYPE);