void_t.hpp 597 B

123456789101112131415161718192021222324
  1. // __ _____ _____ _____
  2. // __| | __| | | | JSON for Modern C++
  3. // | | |__ | | | | | | version 3.11.3
  4. // |_____|_____|_____|_|___| https://github.com/nlohmann/json
  5. //
  6. // SPDX-FileCopyrightText: 2013-2023 Niels Lohmann <https://nlohmann.me>
  7. // SPDX-License-Identifier: MIT
  8. #pragma once
  9. #include <nlohmann/detail/abi_macros.hpp>
  10. NLOHMANN_JSON_NAMESPACE_BEGIN
  11. namespace detail
  12. {
  13. template<typename ...Ts> struct make_void
  14. {
  15. using type = void;
  16. };
  17. template<typename ...Ts> using void_t = typename make_void<Ts...>::type;
  18. } // namespace detail
  19. NLOHMANN_JSON_NAMESPACE_END