소스 검색

dense_map/set: minor changes

Michele Caini 4 년 전
부모
커밋
985abaa12a
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/entt/container/dense_map.hpp
  2. 1 1
      src/entt/container/dense_set.hpp

+ 1 - 1
src/entt/container/dense_map.hpp

@@ -404,7 +404,7 @@ public:
      * @param equal Compare function to use.
      * @param equal Compare function to use.
      * @param allocator The allocator to use.
      * @param allocator The allocator to use.
      */
      */
-    explicit dense_map(const size_type bucket_count, const hasher &hash = hasher{}, const key_equal &equal = key_equal{}, const allocator_type &allocator = allocator_type())
+    explicit dense_map(const size_type bucket_count, const hasher &hash = hasher{}, const key_equal &equal = key_equal{}, const allocator_type &allocator = allocator_type{})
         : sparse{allocator, hash},
         : sparse{allocator, hash},
           packed{allocator, equal},
           packed{allocator, equal},
           threshold{default_threshold} {
           threshold{default_threshold} {

+ 1 - 1
src/entt/container/dense_set.hpp

@@ -354,7 +354,7 @@ public:
      * @param equal Compare function to use.
      * @param equal Compare function to use.
      * @param allocator The allocator to use.
      * @param allocator The allocator to use.
      */
      */
-    explicit dense_set(const size_type bucket_count, const hasher &hash = hasher{}, const key_equal &equal = key_equal{}, const allocator_type &allocator = allocator_type())
+    explicit dense_set(const size_type bucket_count, const hasher &hash = hasher{}, const key_equal &equal = key_equal{}, const allocator_type &allocator = allocator_type{})
         : sparse{allocator, hash},
         : sparse{allocator, hash},
           packed{allocator, equal},
           packed{allocator, equal},
           threshold{default_threshold} {
           threshold{default_threshold} {