Skip to content

patch: optimized adding any #184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 9, 2021
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
4 changes: 3 additions & 1 deletion include/ctre/first.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,9 @@ template <size_t Capacity> class point_set {
insert(A,B);
}
constexpr void populate(can_be_anything) {
insert(std::numeric_limits<int64_t>::min(), std::numeric_limits<int64_t>::max());
points[0].low = std::numeric_limits<int64_t>::min();
points[0].high = std::numeric_limits<int64_t>::max();
used = 1;
}
template <typename... Content> constexpr void populate(ctre::negative_set<Content...> nset) {
negative_helper(nset, [&](int64_t low, int64_t high){
Expand Down
4 changes: 3 additions & 1 deletion single-header/ctre-unicode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3933,7 +3933,9 @@ template <size_t Capacity> class point_set {
insert(A,B);
}
constexpr void populate(can_be_anything) {
insert(std::numeric_limits<int64_t>::min(), std::numeric_limits<int64_t>::max());
points[0].low = std::numeric_limits<int64_t>::min();
points[0].high = std::numeric_limits<int64_t>::max();
used = 1;
}
template <typename... Content> constexpr void populate(ctre::negative_set<Content...> nset) {
negative_helper(nset, [&](int64_t low, int64_t high){
Expand Down
4 changes: 3 additions & 1 deletion single-header/ctre.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3930,7 +3930,9 @@ template <size_t Capacity> class point_set {
insert(A,B);
}
constexpr void populate(can_be_anything) {
insert(std::numeric_limits<int64_t>::min(), std::numeric_limits<int64_t>::max());
points[0].low = std::numeric_limits<int64_t>::min();
points[0].high = std::numeric_limits<int64_t>::max();
used = 1;
}
template <typename... Content> constexpr void populate(ctre::negative_set<Content...> nset) {
negative_helper(nset, [&](int64_t low, int64_t high){
Expand Down