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)
C++ 17 Expand a Fold Expression (as pairs of values)
I am writing some code to experiment with fold expressions.
I don't think my approach to solving this problem is the best possible approach.
I am trying to write a function which "does something&...
FreelanceConsultant
Votes: 0
Answers: 3
Test if elements are sorted with C++17 fold-expression
I am looking for a way to check that arguments are sorted using a c++ fold expression.
The naive approach:
template <typename... Args>
bool are_strictly_increasing(Args const&... args) {
...
gg99
Votes: 0
Answers: 4
variadic template function (to delete number of dynamically allocated variables)
I don't get exactly if I am doing the right thing
template<typename ...AllVArgs>
auto dealloc_all(AllVArgs &..._AllVArgs) -> void {
(((std::cout << "\nin dealloc_all function ...
Gil Rovero
Votes: 0
Answers: 1
C++17 can variadic template class define new type and variadic data member?
#include <iostream>
template <typename T0, typename T1>
struct Clazz {
void doSomething(const std::shared_ptr<T0>& p0,
const std::shared_ptr<T1>& p1) {...
xishvai
Votes: 0
Answers: 2