Warning, file /include/boost/histogram/sample.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007 #ifndef BOOST_HISTOGRAM_SAMPLE_HPP
0008 #define BOOST_HISTOGRAM_SAMPLE_HPP
0009
0010 #include <tuple>
0011 #include <utility>
0012
0013 namespace boost {
0014 namespace histogram {
0015
0016
0017
0018
0019
0020
0021
0022 template <class T>
0023 struct sample_type {
0024 T value;
0025 };
0026
0027
0028
0029
0030
0031 template <class... Ts>
0032 auto sample(Ts&&... ts) noexcept {
0033 return sample_type<std::tuple<Ts...>>{std::forward_as_tuple(std::forward<Ts>(ts)...)};
0034 }
0035
0036 }
0037 }
0038
0039 #endif