xte::detect_cosmic_ray()

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

Claims all available memory and waits for a bit flip to occur. Note that this can be caused by factors other than cosmic rays, such as degrading hardware.


Definition

inline void detect_cosmic_ray() noexcept(false);



Example

xte::detect_cosmic_ray();
std::println("Cosmic ray detected!");
Output (after some time):
Cosmic ray detected!