<<<<<<< .working ======= >>>>>>> .merge-right.r57125
Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
<<<<<<< .working

deduce

Description

=======
Description
>>>>>>> .merge-right.r57125

Metafunction to apply element conversion to the full argument type.

It removes references to const, references to array types are kept, even if the array is const. Reference wrappers are removed (see boost::ref).

<<<<<<< .working

Header

=======
Header
>>>>>>> .merge-right.r57125
#include <boost/fusion/support/deduce.hpp>
#include <boost/fusion/include/deduce.hpp>
<<<<<<< .working

Synopsis

=======
Synopsis
>>>>>>> .merge-right.r57125
namespace traits
{
    template <typename T>
    struct deduce
    {
        typedef unspecified type;
    };
}
<<<<<<< .working

Example

=======
Example
>>>>>>> .merge-right.r57125
template <typename T>
struct holder
{
    typename traits::deduce<T const &>::type element;

    holder(T const & a)
      : element(a)
    { }
};

template <typename T>
holder<T> make_holder(T const & a)
{
    return holder<T>(a);
}
<<<<<<< .working

See also

=======
See also
>>>>>>> .merge-right.r57125

PrevUpHomeNext