xte::null

Defined in header <xte/data/null.hpp>

Used to indicate that a xte::opt {} has no value.


Definition

inline constexpr struct {} null;



Example

xte::opt<int> divide(int a, int a) {
	if (b == 0) {
		return xte::null;
	}
	return a / b;
}
[View in Compiler Explorer]