python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
N-ary cartesian product of variadic templates
I am trying to compute the n-ary cartesian product of variadic templates and so far I haven't found an elegant method for the n-ary case (unary and binary are easy, see below).
Here is the current st...
Vincent
Votes: 0
Answers: 1
conditional type define in c++?
I need to define a template class A, which has a nested type according to nested type in template argument. Like this:
template<typename Container>
class A
{
public:
using NestedType = if (C...
byhc
Votes: 0
Answers: 2
Why don't types with invalid inheritance get rejected when passed as template parameters?
As we all know, classes can't be inherited from fundamental types and from classes that are marked as final. But despite that, the code presented below compiles without any problems on Clang 12 and GC...
i cant
Votes: 0
Answers: 3
Is it possible to create a `map_error` function that takes a lambda?
I am trying to create a map_error method attached to a std::expected type, or something similar. I can't seem to figure out the template meta programming. Is this possible to do something similar to t...
Mark
Votes: 0
Answers: 1