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...
Valedictorian asked 17/9, 2021 at 1:56

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 ...
Kawasaki asked 11/2, 2019 at 13:21

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() {...
Blowfish asked 12/11, 2016 at 4:55

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 <<...
Amyloid asked 10/11, 2016 at 8:48
1

© 2022 - 2024 — McMap. All rights reserved.