All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
make_tuple.hpp
Go to the documentation of this file.
1 //=======================================================================
2 // Copyright (c) 2014 Piotr Wygocki
3 //
4 // Distributed under the Boost Software License, Version 1.0. (See
5 // accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
7 //=======================================================================
15 #ifndef PAAL_MAKE_TUPLE_HPP
16 #define PAAL_MAKE_TUPLE_HPP
17 
18 namespace paal {
22 struct make_tuple {
30  template <typename... Args>
31  auto operator()(Args &&... args) const->decltype(
32  std::make_tuple(std::forward<Args>(args)...)) {
33  return std::make_tuple(std::forward<Args>(args)...);
34  }
35 };
36 
37 }
38 
39 #endif // PAAL_MAKE_TUPLE_HPP
function object for std::make_tuple
Definition: make_tuple.hpp:22
auto operator()(Args &&...args) const -> decltype(std::make_tuple(std::forward< Args >(args)...))
operator()
Definition: make_tuple.hpp:31