Sprout/sprout/variant/apply_visitor.hpp
bolero-MURAKAMI c6bd230ee4 fix inline
add container/indexes.hpp
add tuple/indexes.hpp
2012-04-04 22:23:41 +09:00

18 lines
532 B
C++

#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>
inline SPROUT_CONSTEXPR typename Visitor::result_type apply_visitor(
Visitor&& visitor,
Visitable&& visitable
)
{
return sprout::forward<Visitable>(visitable).apply_visitor(sprout::forward<Visitor>(visitor));
}
} // namespace sprout
#endif // #ifndef SPROUT_VARIANT_APPLY_VISITOR_HPP