2011-11-12 11:24:42 +00:00
|
|
|
#ifndef SPROUT_VARIANT_APPLY_VISITOR_HPP
|
|
|
|
#define SPROUT_VARIANT_APPLY_VISITOR_HPP
|
|
|
|
|
|
|
|
#include <sprout/config.hpp>
|
|
|
|
#include <sprout/utility/forward.hpp>
|
|
|
|
|
|
|
|
namespace sprout {
|
|
|
|
template<typename Visitor, typename Visitable>
|
2012-04-04 13:23:41 +00:00
|
|
|
inline SPROUT_CONSTEXPR typename Visitor::result_type apply_visitor(
|
2011-11-12 11:24:42 +00:00
|
|
|
Visitor&& visitor,
|
|
|
|
Visitable&& visitable
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return sprout::forward<Visitable>(visitable).apply_visitor(sprout::forward<Visitor>(visitor));
|
|
|
|
}
|
|
|
|
} // namespace sprout
|
|
|
|
|
|
|
|
#endif // #ifndef SPROUT_VARIANT_APPLY_VISITOR_HPP
|