arg_router  1.4.0
C++ command line argument parsing and routing
type_hash.hpp
1 // Copyright (C) 2022-2023 by Camden Mannett.
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
4 
5 #pragma once
6 
7 #include <string_view>
8 
9 namespace arg_router::utility
10 {
28 template <typename T>
29 [[nodiscard]] std::size_t type_hash() noexcept
30 {
31  return reinterpret_cast<std::size_t>(&type_hash<T>);
32 }
33 } // namespace arg_router::utility
std::size_t type_hash() noexcept
Definition: type_hash.hpp:29