1 // Copyright 2019 Hans Dembinski
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt
5 // or copy at http://www.boost.org/LICENSE_1_0.txt)
7 #ifndef BOOST_HISTOGRAM_SAMPLE_HPP
8 #define BOOST_HISTOGRAM_SAMPLE_HPP
21 /** Helper function to mark arguments as sample.
23 @param ts arguments to be forwarded to the accumulator.
25 template <class... Ts>
26 auto sample(Ts&&... ts) noexcept {
27 return sample_type<std::tuple<Ts...>>{std::forward_as_tuple(std::forward<Ts>(ts)...)};
30 } // namespace histogram