#ifndef RFL_MAKENAMEDTUPLE_HPP_ #define RFL_MAKENAMEDTUPLE_HPP_ #include #include "NamedTuple.hpp" namespace rfl { /// Convenience constructor that doesn't require you /// to explitly define the field types. template inline auto make_named_tuple(FieldTypes&&... _args) { return NamedTuple...>( std::forward(_args)...); } /// Convenience constructor that doesn't require you /// to explitly define the field types. template inline auto make_named_tuple(const FieldTypes&... _args) { return NamedTuple(_args...); } /// Explicit overload for creating empty named tuples. inline auto make_named_tuple() { return NamedTuple<>(); } } // namespace rfl #endif // RFL_MAKENAMEDTUPLE_HPP_