cxxomfort
rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
Files | |
file | 14-integer_sequence.hpp |
Backports for C++14's "integer_sequence" facilities. | |
file | utility.hpp |
Implementations related to Standard Header utility . | |
Functions | |
template<typename T , typename U = T> | |
T | exchange (T &obj, CXXO_RV_REF(U) nval) |
Replaces a variable's value, returns the old value. More... | |
T cxxomfort::cxxostd::exchange | ( | T & | obj, |
CXXO_RV_REF(U) | nval | ||
) |
Replaces a variable's value, returns the old value.
The macro CXXOMFORT_IMPLEMENTS_exchange
informs about the implementation status. Additionally, when cxxomfort activates this feature, it will define the macro __cpp_lib_exchange_function
from SD-6.