decay — Boost.HigherOrderFunctions 0.6 documentation

# decay

## Header

    #include <boost/hof/decay.hpp>

## Description

The `decay` function is a unary function object that returns whats given to it after decaying its type.

## Synopsis

    struct
    {
        template<class T>
        constexpr typename decay<T>::type operator()(T&& x) const
        {
            return boost::hof::forward<T>(x);
        }
    } decay;

## References

- n3255 - Proposal for `decay_copy`