We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3acf565 commit d212b10Copy full SHA for d212b10
include/openPMD/auxiliary/Variant.hpp
@@ -90,5 +90,17 @@ namespace auxiliary
90
private:
91
resource m_data;
92
};
93
+
94
+ /*
95
+ * Helper type for std::visit,
96
+ * see https://en.cppreference.com/w/cpp/utility/variant/visit
97
+ */
98
+ template <class... Ts>
99
+ struct overloaded : Ts...
100
+ {
101
+ using Ts::operator()...;
102
+ };
103
104
+ overloaded(Ts...) -> overloaded<Ts...>;
105
} // namespace auxiliary
106
} // namespace openPMD
0 commit comments