xte::segfault()

Defined in header <xte/sys/segfault.hpp>

Dereferences nullptr, though whether this is handled at all is entirely up to the operating system.
Also, this invokes undefined behavior.


Definition

inline void segfault() noexcept;
Why would you use this?



Example

xte::segfault();
Possible output:
Segmentation fault (code dumped)
[View in Compiler Explorer]