mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-16 10:49:05 +00:00
23 lines
537 B
C++
23 lines
537 B
C++
|
#ifndef SPROUT_VARIANT_STATIC_VARIANT_VISITOR_HPP
|
||
|
#define SPROUT_VARIANT_STATIC_VARIANT_VISITOR_HPP
|
||
|
|
||
|
#include <type_traits>
|
||
|
#include <sprout/config.hpp>
|
||
|
#include <sprout/variant/variant.hpp>
|
||
|
|
||
|
namespace sprout {
|
||
|
//
|
||
|
// static_variant_visitor
|
||
|
//
|
||
|
class static_variant_visitor {
|
||
|
public:
|
||
|
template<typename... Types>
|
||
|
struct visitor_result {
|
||
|
public:
|
||
|
typedef sprout::variant<typename std::decay<Types>::type...> type;
|
||
|
};
|
||
|
};
|
||
|
} // namespace sprout
|
||
|
|
||
|
#endif // #ifndef SPROUT_VARIANT_STATIC_VARIANT_VISITOR_HPP
|