Skip to content

Commit 2017cf3

Browse files
committed
Remove preds::unconstrained
I plan to add some built-in predicates, but not yet. This one in particular was a hacky from when I was experimenting with conversions.
1 parent b31444b commit 2017cf3

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

include/rvarago/refined.hpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,6 @@ struct to_exception {
6868

6969
} // namespace error
7070

71-
// Reusable predicates.
72-
namespace preds {
73-
74-
// Assumes all values of `T` are valid.
75-
template <typename T> constexpr auto unconstrained(T const &) -> bool {
76-
return true;
77-
}
78-
} // namespace preds
79-
8071
template <typename T, std::predicate<T const &> auto Pred, typename... Bases>
8172
requires((std::is_same_v<T, typename Bases::value_type> && ...) &&
8273
(std::predicate<typename Bases::predicate_type, T const &> && ...))

0 commit comments

Comments
 (0)