Skip to main content

Questions tagged [constant-expression]

Use this whenever compile-time expression is implemented (currently exists in C++ and D). Do not use this tag if the compile-time evaluation property is achieved through template metaprogramming in C++ (in which case use the [template-meta-programming] tag).

2 votes
0 answers
112 views

We have a graphics library for the Ti84CE, which uses the 24bit eZ80. It has a 16bit 1555 screen, so we have a gfx_Darken function that will darken a 16bit 1555 ...
Vortex 2728182818's user avatar
2 votes
0 answers
107 views

This increment This obsoletes a former version, after taking a great review into account: The encoding now preserves sized_range and ...
nilo's user avatar
  • 805
4 votes
2 answers
386 views

This obsoletes a former version and is obsoleted by an improved version. The following code is an implementation of, in ambition, RFC 4648 compliant Base16 conversions as range adaptors in C++23. It ...
nilo's user avatar
  • 805
4 votes
1 answer
214 views

The goal of the code is to enable me to express a 2D array in an unsorted coordinate-sparse representation in my code (i.e. a list of individual x, y, value entries ...
AJMansfield's user avatar
  • 1,533
5 votes
1 answer
688 views

Intended as a small project to test out various C++20 features, as well as learn a little bit more about matrices and their uses, I decided to implement a relatively simple matrix class. After ...
Dnarok's user avatar
  • 53
2 votes
1 answer
3k views

Here's a constexpr hash function, that will pack a string into the largest unsigned integral type available. So, what do you think? ...
user1095108's user avatar
  • 1,454
2 votes
1 answer
235 views

I'm implementing a std::function like class that uses type erasure. So far it can be used with function objects (functions/function pointers, functors, lamdas) and pointer to member function. But to ...
Luca's user avatar
  • 123
2 votes
2 answers
2k views

When I heard about the new Linux I/O interface io_uring I searched about the ring buffer. I then thought I may replace my safe queue which is base on C++ 11 ...
dev65's user avatar
  • 293

15 30 50 per page