Beispiel #1
0
 /* constexpr */ explicit tuple(U&& ...u)
     : unpack_into(make_storage(std::forward<U>(u)...))
 { };
Beispiel #2
0
int main() {
    auto&& s = make_storage(test());
    std::cout << "blah";
}
Beispiel #3
0
int main() {
    auto&& s = make_storage(42);
    std::cout << *(s.ptr);
}
Beispiel #4
0
 Tuple(U&& ...u) : unpack_into(make_storage(std::forward<U>(u)...)) // initialize our member variables
 {
 }