Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <iostream>
#include <list>
#include <utility>
#include <rectpack2D/finders_interface.h>

/* For description of the algorithm, please see the README.md */
Expand Down
2 changes: 1 addition & 1 deletion src/rectpack2D/best_bin_finder.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once
#include <variant>
#include <cassert>
#include <algorithm>
#include <optional>
#include "rect_structs.h"

namespace rectpack2D {
Expand Down
2 changes: 0 additions & 2 deletions src/rectpack2D/empty_space_allocators.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#pragma once
#include <array>
#include <vector>
#include <type_traits>

#include "rect_structs.h"

namespace rectpack2D {
Expand Down
1 change: 1 addition & 0 deletions src/rectpack2D/empty_spaces.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
#include <optional>
#include "insert_and_split.h"

namespace rectpack2D {
Expand Down
10 changes: 1 addition & 9 deletions src/rectpack2D/finders_interface.h
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
#pragma once
#include <optional>
#include <vector>
#include <array>
#include <variant>
#include <memory>
#include <algorithm>

#include "insert_and_split.h"
#include "empty_spaces.h"
#include "empty_space_allocators.h"

#include "best_bin_finder.h"
#include "empty_space_allocators.h" // IWYU pragma: export

namespace rectpack2D {
template <class empty_spaces_type>
Expand Down
4 changes: 2 additions & 2 deletions src/rectpack2D/rect_structs.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once
#include <utility>
#include <algorithm>

namespace rectpack2D {
using total_area_type = int;
Expand Down Expand Up @@ -87,4 +87,4 @@ namespace rectpack2D {
};

using space_rect = rect_xywh;
}
}