6 #ifndef KAGOME_CORE_COMMON_WRAPPER_HPP     7 #define KAGOME_CORE_COMMON_WRAPPER_HPP    10 #include <type_traits>    12 #include <boost/operators.hpp>    23   template <
typename T, 
typename Tag>
    49             typename = std::enable_if<std::is_arithmetic<T>::value>>
    51     return a.
unwrap() < b.unwrap();
    56 template <
typename T, 
typename Tag>
    57 struct std::hash<
kagome::common::Wrapper<T, Tag>> {
    59     return std::hash<T>()(w.
unwrap());
    63 #endif  // KAGOME_CORE_COMMON_WRAPPER_HPP 
std::size_t operator()(const kagome::common::Wrapper< T, Tag > &w)
 
Make strongly typed structures from different concepts of the equal types. E.g. block height and roun...
 
bool operator==(const Wrapper< T, Tag > &other) const