Skip to content

Commit 1a16ec7

Browse files
author
Julian LALU
committed
Improve hashmap
1 parent de9a179 commit 1a16ec7

File tree

1 file changed

+1
-38
lines changed

1 file changed

+1
-38
lines changed

interface/core/containers/hashset.h

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -304,51 +304,14 @@ namespace hud
304304

305305
private:
306306
/** slot_storage with other key or value can access private members of slot_storage. */
307-
template<typename u_key_t, typename u_value_t>
307+
template<typename u_key_ts>
308308
friend class slot_storage;
309309

310310
protected:
311311
/** The key. */
312312
key_type element_;
313313
};
314314

315-
// template<typename key_t>
316-
// struct slot
317-
// : slot_storage<key_t>
318-
// {
319-
// using storage = slot_storage<key_t>;
320-
// using key_type = storage::key_type;
321-
322-
// template<typename... type_t>
323-
// requires(hud::is_constructible_v<key_type, type_t...>)
324-
// constexpr explicit slot(type_t &&...values) noexcept
325-
// : storage(hud::forward<type_t>(values)...)
326-
// {
327-
// }
328-
329-
// constexpr explicit(!hud::is_convertible_v<const key_type &, key_type>) slot(const slot &other) noexcept
330-
// requires(hud::is_nothrow_copy_constructible_v<key_type>)
331-
// = default;
332-
333-
// template<typename u_key_t = key_t>
334-
// requires(hud::is_copy_constructible_v<key_type, u_key_t>)
335-
// constexpr explicit(!hud::is_convertible_v<const key_type &, u_key_t>) slot(const slot<u_key_t> &other) noexcept
336-
// : storage(other)
337-
// {
338-
// }
339-
340-
// constexpr explicit(!(hud::is_convertible_v<key_type, key_type>)) slot(slot &&other) noexcept
341-
// requires(hud::is_nothrow_move_constructible_v<key_type>)
342-
// = default;
343-
344-
// template<typename u_key_t = key_t>
345-
// requires(hud::is_move_constructible_v<key_type, u_key_t>)
346-
// constexpr explicit(!(hud::is_convertible_v<key_type, u_key_t>)) slot(slot<u_key_t> &&other) noexcept
347-
// : storage(hud::move(other))
348-
// {
349-
// }
350-
// };
351-
352315
template<typename key_t>
353316
struct default_hasher
354317
{

0 commit comments

Comments
 (0)