Você não pode selecionar mais de 25 tópicos
Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
|
- #pragma once
-
- #include <cxxabi.h>
- #include <string>
-
- namespace cppcore
- {
-
- /**
- * @brief Class to get meta infos for a specific type.
- */
- template<typename T>
- struct type_helper
- {
- public:
- /**
- * @brief Get the name of the type.
- */
- static inline const std::string& name();
- };
-
-
-
- /**
- * @brief Implements a unique counter for the given template parameters.
- */
- template<typename...>
- struct unique_counter
- {
- /**
- * @brief Get the next value of the counter.
- */
- static inline size_t& next();
- };
-
-
-
- /**
- * @brief Get a unique ID for the passed template arguments.
- *
- * @tparam T_counter Counter to use to generate the unique ID.
- * @tparam X Type to generate the ID for.
- */
- template<typename T_counter, typename... X>
- inline size_t get_unique_id();
-
- }
-
- #include "type_helper.inl"
|