Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-10-27 19:49:46 +0200
committerMartin Hořeňovský2021-10-27 20:01:13 +0200
commitf17725a186d209a26836fc3e13cdcee423ddd1e8 (patch)
tree064ae842d7baa9da077a32b28ff2eb627b3a21d3 /src/catch2/internal
parentec2d5013fbeddd30e65c44639287b15eb591d68e (diff)
downloadcatch3-f17725a186d209a26836fc3e13cdcee423ddd1e8.tar.gz
Split void_type into its own header and rename it to void_t
Diffstat (limited to 'src/catch2/internal')
-rw-r--r--src/catch2/internal/catch_void_type.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/catch2/internal/catch_void_type.hpp b/src/catch2/internal/catch_void_type.hpp
new file mode 100644
index 00000000..23875c35
--- /dev/null
+++ b/src/catch2/internal/catch_void_type.hpp
@@ -0,0 +1,25 @@
+
+// Copyright Catch2 Authors
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// https://www.boost.org/LICENSE_1_0.txt)
+
+// SPDX-License-Identifier: BSL-1.0
+#ifndef CATCH_VOID_TYPE_HPP_INCLUDED
+#define CATCH_VOID_TYPE_HPP_INCLUDED
+
+
+namespace Catch {
+ namespace Detail {
+
+ template <typename...>
+ struct make_void { using type = void; };
+
+ template <typename... Ts>
+ using void_t = typename make_void<Ts...>::type;
+
+ } // namespace Detail
+} // namespace Catch
+
+
+#endif // CATCH_VOID_TYPE_HPP_INCLUDED