Interface Documentation
Version: 2.-1 (devel)
tuple_wrapper.hh
Go to the documentation of this file.
1 /*
2  @@@@@@@@ @@ @@@@@@ @@@@@@@@ @@
3  /@@///// /@@ @@////@@ @@////// /@@
4  /@@ /@@ @@@@@ @@ // /@@ /@@
5  /@@@@@@@ /@@ @@///@@/@@ /@@@@@@@@@/@@
6  /@@//// /@@/@@@@@@@/@@ ////////@@/@@
7  /@@ /@@/@@//// //@@ @@ /@@/@@
8  /@@ @@@//@@@@@@ //@@@@@@ @@@@@@@@ /@@
9  // /// ////// ////// //////// //
10 
11  Copyright (c) 2016, Triad National Security, LLC
12  All rights reserved.
13  */
14 #pragma once
15 
18 #include <tuple>
19 
20 namespace flecsi {
21 namespace utils {
22 
23 struct generic_tuple_t {};
24 
29 template<typename... Args>
31 
32  using tuple_t = std::tuple<Args...>;
33 
34  tuple_wrapper_(Args... args) : t_(std::make_tuple(args...)) {}
35 
36  template<std::size_t I>
37  decltype(auto) get() {
38  return std::get<I>(t_);
39  }
40 
41 private:
42  tuple_t t_;
43 
44 }; // class tuple_wrapper_
45 
46 } // namespace utils
47 } // namespace flecsi
tuple_wrapper_ provides...
Definition: tuple_wrapper.hh:30
Definition: tuple_wrapper.hh:23
Definition: default_node.hh:20