Skip to content

Commit

Permalink
restructure hash headers
Browse files Browse the repository at this point in the history
  • Loading branch information
yaito3014 committed Aug 22, 2024
1 parent bf13cc1 commit 3a7a091
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
10 changes: 10 additions & 0 deletions include/yk/hash.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#ifndef YK_HASH_HPP
#define YK_HASH_HPP

#include "yk/hash/std.hpp"

#if YK_UTIL_INCLUDE_BOOST
#include "yk/hash/boost.hpp"
#endif

#endif // YK_HASH_HPP
8 changes: 4 additions & 4 deletions include/yk/util/hash/boost.hpp → include/yk/hash/boost.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef YK_UTIL_HASH_BOOST_HPP
#define YK_UTIL_HASH_BOOST_HPP
#ifndef YK_HASH_BOOST_HPP
#define YK_HASH_BOOST_HPP

#include "yk/util/hash/hash.hpp"
#include "yk/hash/hash.hpp"

#include <boost/container_hash/hash_fwd.hpp>

Expand All @@ -16,4 +16,4 @@ template <class T>

} // namespace yk

#endif // YK_UTIL_HASH_BOOST_HPP
#endif // YK_HASH_BOOST_HPP
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions include/yk/util/hash/std.hpp → include/yk/hash/std.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef YK_UTIL_HASH_STD_HPP
#define YK_UTIL_HASH_STD_HPP
#ifndef YK_HASH_STD_HPP
#define YK_HASH_STD_HPP

#include "yk/util/hash/hash.hpp"
#include "yk/hash/hash.hpp"

#include <functional>

Expand All @@ -23,4 +23,4 @@ template <class T>

} // namespace yk

#endif // YK_UTIL_HASH_STD_HPP
#endif // YK_HASH_STD_HPP
10 changes: 0 additions & 10 deletions include/yk/util/hash.hpp

This file was deleted.

6 changes: 3 additions & 3 deletions test/test.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#include "yk/allocator/default_init_allocator.hpp"
#include "yk/hash.hpp"
#include "yk/hash/boost.hpp"
#include "yk/hash/hash_combine.hpp"
#include "yk/maybe_mutex.hpp"
#include "yk/par_for_each.hpp"
#include "yk/stack.hpp"
#include "yk/util/forward_like.hpp"
#include "yk/util/hash.hpp"
#include "yk/util/hash/boost.hpp"
#include "yk/util/hash/hash_combine.hpp"
#include "yk/util/pack_indexing.hpp"
#include "yk/util/reverse.hpp"
#include "yk/util/specialization_of.hpp"
Expand Down

0 comments on commit 3a7a091

Please sign in to comment.