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)
Why is there still no move-from-elements ctor for `std::tuple'?
Long while ago I faced a question very much like this one:
std::tuple default constructor with move-constructable element
C++ is evolving and improving at a high rate, but minor changes to code still ...
Red.Wave
Votes: 0
Answers: 0
What's the purpose of const swap() function?
While implementing a custom tuple (here), I found there is a wired swap() function that takes const parameters (cppreference):
template< class... Types >
constexpr void swap( const std::tuple<...
El Mismo Sol
Votes: 0
Answers: 3
accessing std::tuple element by constexpr in type
I would like to access to a tuple element at compile time by a value constexpr in the type
#include <iostream>
#include <tuple>
#include <utility>
struct A {
static constexpr in...
Deub
Votes: 0
Answers: 3
Virtual functions in class instantiated with std::tuple<void>
I am working on a class that accepts a tuple of types of messages this obect will receive. In our model, we're using void to express the existence of a message that does not carry data, just a signal....
devreal
Votes: 0
Answers: 2