Feb 28, 2025
this pointer in member functionsclass Cell {
void setValue(Cell& self) { self.m_value = 42; }
}
if const eval a else bisConstantEvaluated functionoperator[]UZ (size_t) and Z (signed size type)lifdef, lifendef for improved preprocessor directiveswarning directive to emit compiler warningsstd::unreachable to mark unreachable code sections[[assume]] syntax for performance hintsExample:
void divideBy32(int x) [[assume(x > 0)]];
std::print and std::println simplify output operationsstd::cout and std::formatflat_map, flat_set for optimized performancestd::span and md_spanmd_span supports multidimensional views and layout policiestransform, and_then, or_else)std::stacktrace to retrieve current stack trace easilyzip, pairwise, chunk, join, and morestd::expected to represent value or error statesstd::move_only_function for lambdas with captured variables