wxMaxima
Loading...
Searching...
No Matches
Data Structures | Functions
Compat.h File Reference

Small C++ standard-library compatibility shims. More...

#include <thread>
#include <version>
#include <algorithm>
#include <ranges>
Include dependency graph for Compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  stop_token
 
struct  stop_source
 
class  jthread
 

Functions

template<typename R , typename T >
constexpr bool ranges::contains (R &&r, const T &value)
 

Detailed Description

Small C++ standard-library compatibility shims.

wxMaxima targets C++20 but aims to keep building on toolchains a few years behind. This header provides minimal fall-backs for std features that may be missing there: std::jthread / std::stop_token / std::stop_source, and std::ranges::contains. These were historically carried in Version.h; they live here now because they have nothing to do with the version and are pure, CMake-independent C++ (so this header is a plain committed file, not generated).