python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
C++ 17 What is the difference between a fold expression and if constexpr when using variadic template arguments (parameter pack)
I am trying to understand the difference between two approaches for handling parameter packs / variadic template arguments.
There are two approaches mentioned in the linked article below.
fold expres...
FreelanceConsultant
Votes: 0
Answers: 2
How can I static assert to disallow "mixed endianness" in a non-templated member function
I am using 2 x std::uint64_t and 1 x std::uint32_t in a high performance implementation of of operator<=> in a struct conataining a std::array<std::byte, 20>.
I am trying to make it cross ...
Oliver Schönrock
Votes: 0
Answers: 2
Is there a constexpr which lets me determine if there is an output operator (<<) for a particular type?
In order to prevent the compiler to apply e.g. a std::vector<T> to a statement like std::cout << u, I would like to do something like this:
if constexpr (std::has_output_operator<U>)...
user1479670
Votes: 0
Answers: 1