.working ======= <<<<<<< .working >>>>>>> .merge-right.r57125 ======= >>>>>>> .merge-right.r58299
![]() |
Home | Libraries | People | FAQ | More |
<<<<<<< .working
Returns the result type of at_key
[8]
=======
Returns the result type of at_key
[8]
>>>>>>> .merge-right.r57125
.
template< typename Seq, typename Key> struct at_key { typedef unspecified type; };
Table 1.30. Parameters
Parameter |
Requirement |
Description |
|---|---|---|
Seq |
A model of Forward Sequence |
Argument sequence |
Key |
Any type |
Key type |
result_of::at_key<Seq, Key>::type
Return type: Any type.
Semantics: Returns the result of using at_key to access the element with key type Key in Seq.
#include <boost/fusion/sequence/intrinsic/at_key.hpp> #include <boost/fusion/include/at_key.hpp>
typedef map<pair<int, char>, pair<char, char>, pair<double, char> > mymap; BOOST_MPL_ASSERT((boost::is_same<result_of::at_key<mymap, int>::type, char&>));
[8] result_of::at_key reflects the actual return type of the function at_key. _sequence_s typically return references to its elements via the at_key function. If you want to get the actual element type, use result_of::value_at_key =======
[8] =======
[8] =======
[8] =======
[8] =======
[8] =======
[8]
>>>>>>> .merge-right.r58559
>>>>>>> .merge-right.r58549
>>>>>>> .merge-right.r58299
>>>>>>> .merge-right.r57337
>>>>>>> .merge-right.r57242
result_of::at_key reflects the actual
return type of the function at_key. _sequence_s
typically return references to its elements via the at_key function. If you
want to get the actual element type, use result_of::value_at_key
>>>>>>> .merge-right.r57125