...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Type trait that applies the transformation performed
by std::make_tuple
to a single element.
Defined in header <boost/mysql/with_params.hpp>
template< class T> using make_tuple_element_t = typename std::tuple_element< 0, decltype(std::make_tuple(std::declval< T && >()))>::type;
For example:
make_tuple_element_t<int>
yields int
make_tuple_element_t<const int&>
yields int
make_tuple_element_t<std::reference_wrapper<int>>
yields int&
Consult the std::make_tuple
docs for more info.
Convenience header <boost/mysql.hpp>