mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-12-25 21:35:41 +00:00
19 lines
532 B
C++
19 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>
|
||
|
SPROUT_CONSTEXPR inline 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
|