diff --git a/ngraph/core/src/type/element_type.cpp b/ngraph/core/src/type/element_type.cpp index 369fd11786f57a..fd91450cbc722f 100644 --- a/ngraph/core/src/type/element_type.cpp +++ b/ngraph/core/src/type/element_type.cpp @@ -43,16 +43,16 @@ namespace struct ElementTypes { - struct element_type_hash + struct TypeHash { size_t operator()(element::Type_t t) const { return static_cast(t); } }; - using map_t = std::unordered_map; - static const map_t map; + using ElementsMap = std::unordered_map; + static const ElementsMap elements_map; }; - const ElementTypes::map_t ElementTypes::map{ + const ElementTypes::ElementsMap ElementTypes::elements_map{ {element::Type_t::undefined, TypeInfo( std::numeric_limits::max(), false, false, false, "undefined", "undefined")}, @@ -75,7 +75,7 @@ namespace {element::Type_t::u64, TypeInfo(64, false, false, false, "uint64_t", "u64")}, }; - const ElementTypes::map_t& get_type_info_map() { return ElementTypes::map; }; + const ElementTypes::ElementsMap& get_type_info_map() { return ElementTypes::elements_map; }; const TypeInfo& get_type_info(element::Type_t type) {