stdapply Questions
2
Solved
While implementing a compressed_tuple class for some project I'm working on, I ran into the following issue: I can't seem to pass instances of this type to std::apply, even though this should be po...
2
Solved
I am trying to create a generic class that takes a pack of types, stores them in a tuple, and can apply a function over them.
What I tried so far is the following:
#include <tuple>
struct ...
2
Solved
Consider possible implementation of std::apply:
namespace detail {
template <class F, class Tuple, std::size_t... I>
constexpr decltype(auto) apply_impl(F &&f, Tuple &&t, std...
Incorrigible asked 21/12, 2016 at 10:34
3
Solved
I tried code below in Wandbox:
#include <array>
#include <iostream>
#include <tuple>
#include <typeinfo>
#include <functional>
#include <utility>
int main()
{...
1
Solved
Is it possible to apply a variadic function to a tuple with std::apply?
For example, the following code works fine with GCC 6.2.1:
void print_t(std::string i, std::string j) {
std::cout <<...
1
© 2022 - 2024 — McMap. All rights reserved.