Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Oct 10, 2024
1 parent 4b04140 commit b24f8b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/utki/linq.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class linq_collection_aggregator
}
}

return linq_collection_aggregator<decltype(ret)&&>(std::move(ret));
return linq_collection_aggregator<decltype(ret) &&>(std::move(ret));
}

template <typename func_type>
Expand Down Expand Up @@ -149,7 +149,7 @@ class linq_collection_aggregator
ret[func(v)].push_back(std::move(v));
}

return linq_collection_aggregator<decltype(ret)&&>(std::move(ret));
return linq_collection_aggregator<decltype(ret) &&>(std::move(ret));
}

template <typename func_type>
Expand All @@ -176,7 +176,7 @@ class linq_collection_aggregator
func
);

return linq_collection_aggregator<decltype(ret)&&>(std::move(ret));
return linq_collection_aggregator<decltype(ret) &&>(std::move(ret));
}

template <typename func_type>
Expand All @@ -202,13 +202,13 @@ class linq_collection_aggregator

if constexpr (std::is_rvalue_reference_v<collection_type>) {
std::sort(this->collection.begin(), this->collection.end(), comparer);
return linq_collection_aggregator<decltype(this->collection)&&>(std::move(this->collection));
return linq_collection_aggregator<decltype(this->collection) &&>(std::move(this->collection));
} else {
std::vector<value_type> ret;
std::copy(this->collection.begin(), this->collection.end(), std::back_inserter(ret));

std::sort(ret.begin(), ret.end(), comparer);
return linq_collection_aggregator<decltype(ret)&&>(std::move(ret));
return linq_collection_aggregator<decltype(ret) &&>(std::move(ret));
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/utki/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ class scope_exit
* @brief Constructor.
* @param f - function to call on object destruction.
*/
scope_exit(decltype(f)&& f) :
scope_exit(decltype(f) && f) :
f(std::move(f))
{}

Expand Down

0 comments on commit b24f8b8

Please sign in to comment.