mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-19 23:32:17 +02:00
documents result metafunctions for make_pair and pair members
[SVN r35749]
This commit is contained in:
@ -266,6 +266,22 @@ It is used as elements in __map__s, for example.
|
||||
template <typename First, typename Second>
|
||||
struct pair;
|
||||
|
||||
namespace result_of
|
||||
{
|
||||
template <typename First, typename Second>
|
||||
struct first;
|
||||
|
||||
template <typename First, typename Second>
|
||||
struct second;
|
||||
|
||||
template <typename First, typename Second>
|
||||
struct make_pair;
|
||||
}
|
||||
|
||||
template <typename First, typename Second>
|
||||
typename result_of::make_pair<First,Second>::type
|
||||
make_pair(Second const &);
|
||||
|
||||
[heading Template parameters]
|
||||
|
||||
[table
|
||||
@ -287,8 +303,10 @@ It is used as elements in __map__s, for example.
|
||||
|
||||
[table
|
||||
[[Expression] [Semantics]]
|
||||
[[`P::first_type`] [The type of the first template parameter, `F`.]]
|
||||
[[`P::second_type`] [The type of the second template parameter, `S`.]]
|
||||
[[`P::first_type`] [The type of the first template parameter, `F`, equivalent to
|
||||
`result_of::first<P>::type`. ]]
|
||||
[[`P::second_type`] [The type of the second template parameter, `S`, equivalent to
|
||||
`result_of::second<P>::type`. ]]
|
||||
[[`P()`] [Default construction.]]
|
||||
[[`P(s)`] [Construct a pair given value for the second type, `s`.]]
|
||||
[[`P(p2)`] [Copy constructs a pair from another pair, `p2`.]]
|
||||
|
Reference in New Issue
Block a user