As we know, C++23 support Standard Library Modules. Until May 2023, MSVC support it but we need add Standard Library Modules manually as Microsoft blo ...
As we know, C++23 support Standard Library Modules. Until May 2023, MSVC support it but we need add Standard Library Modules manually as Microsoft blo ...
I'm finding myself doing a lot of void doSomethingCool(CoolObject* coolObject) { if (coolObject == nullptr) { return; } // now _actua ...
The keyword constexpr enforced pretty tight restrictions on functions on its introduction into the C++11 standard. These restrictions were loosened wi ...
Unlike fundamental types – float, double and long double – are the new floatN_t types in <stdfloat> introduced in C++23 going to be always IEEE ...
Given this program, compiled with g++-13 -std=c++2b test.cpp: ...where that is... #include <array> #include <ranges> auto main() -> ...
I'm trying to make an iterator that passes over a string view mostly character-by-character with a few special cases and what I tried was the followin ...
std::print() will be added in C++23. What I'm wondering is if std::print() is thread-safe, in the sense that there is no data race And does it have ...
I am currently playing with C++ modules, trying to modernize our company's code C++ base to use modules for the core features. In particular there is ...
Legacy iterator adaptors such as reverse_iterator and move_iterator, or C++20/23 newly introduced adaptors such as counted_iterator, basic_const_itera ...
Assuming X and Y are suitable types for such usage, is it UB to use std::start_lifetime_as<X> on an area of memory in one thread as one type and ...
I've been dangling around with a small bare-bone multi-dimensional-tensor-array implementation; and have encountered an issue with std::make_index_seq ...
I want to create a view that will have views of both halves of the string. I added some code examples of what I would like to achieve. How could I do ...
Facing issue std::ranges::to I am executing the below example from https://en.cppreference.com/w/cpp/ranges/to But getting a error https://colir ...
I want to mix up the co_yielding string literals and std::strings However, I'm wondering about the lifetime of the std::string? Maybe it's safe if ...
There is a rather typical task of sorting two arrays simultaneously, assuming that same indexed elements of the arrays form virtual pairs, which are s ...
C++23 adds some "monadic-style" functionality regarding optionals, as methods of optional<T>: optional<T>::and_then() (and ignoring quali ...
See this little example: This code can be successfully compiled with gcc, but clang rejects it (godbolt): Which compiler is correct? If clang i ...
In the example below, I need to use the template disambiguator in the line marked as #1, while it appears to be unnecessary in the other occurrence of ...
I need to construct a std::discrete_distribution out of a std::vector from another class. However, everything I get an error cannot create std::ve ...
In the current draft of C++23s flat_map design, the type flat_map::reference is defined as pair<const key_type&, mapped_type&>, i.e. it ...