Skip to content

Commit

Permalink
Format latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SSoelvsten committed Oct 23, 2024
1 parent 970854f commit 81f6dca
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 106 deletions.
6 changes: 4 additions & 2 deletions src/adiar/bdd.h
Original file line number Diff line number Diff line change
Expand Up @@ -2077,7 +2077,8 @@ namespace adiar
/// \returns The output iterator at its final state.
//////////////////////////////////////////////////////////////////////////////////////////////////
template <typename OutputIt,
typename = enable_if<!is_convertible<OutputIt, consumer<pair<bdd::label_type, bool>>> && !is_convertible<OutputIt, bdd>>>
typename = enable_if<!is_convertible<OutputIt, consumer<pair<bdd::label_type, bool>>>
&& !is_convertible<OutputIt, bdd>>>
OutputIt
bdd_satmin(const bdd& f, OutputIt iter)
{
Expand Down Expand Up @@ -2174,7 +2175,8 @@ namespace adiar
/// \returns The output iterator at its final state.
//////////////////////////////////////////////////////////////////////////////
template <typename OutputIt,
typename = enable_if<!is_convertible<OutputIt, consumer<pair<bdd::label_type, bool>>> && !is_convertible<OutputIt, bdd>>>
typename = enable_if<!is_convertible<OutputIt, consumer<pair<bdd::label_type, bool>>>
&& !is_convertible<OutputIt, bdd>>>
OutputIt
bdd_satmax(const bdd& f, OutputIt iter)
{
Expand Down
6 changes: 4 additions & 2 deletions src/adiar/deprecated.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ namespace adiar
/// \brief The lexicographically smallest x such that f(x) is true.
//////////////////////////////////////////////////////////////////////////////////////////////////
template <typename ForwardIt, typename = enable_if<is_mutable<typename ForwardIt::reference>>>
[[deprecated("Use an output iterator (Did you mean to provide values? Use a constant iterator, for now)")]]
[[deprecated(
"Use an output iterator (Did you mean to provide values? Use a constant iterator, for now)")]]
ForwardIt
bdd_satmin(const bdd& f, ForwardIt begin, ForwardIt end)
{
Expand All @@ -34,7 +35,8 @@ namespace adiar
/// \brief The lexicographically largest x such that f(x) is true.
//////////////////////////////////////////////////////////////////////////////
template <typename ForwardIt, typename = enable_if<is_mutable<typename ForwardIt::reference>>>
[[deprecated("Use an output iterator (Did you mean to provide values? Use a constant iterator, for now)")]]
[[deprecated(
"Use an output iterator (Did you mean to provide values? Use a constant iterator, for now)")]]
ForwardIt
bdd_satmax(const bdd& f, ForwardIt begin, ForwardIt end)
{
Expand Down
16 changes: 4 additions & 12 deletions src/adiar/functional.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ namespace adiar
inline consumer<ValueType>
make_consumer(OutputIt& iter)
{
return [&iter](const ValueType& x) {
*(iter++) = x;
};
return [&iter](const ValueType& x) { *(iter++) = x; };
}

//////////////////////////////////////////////////////////////////////////////////////////////////
Expand All @@ -78,9 +76,7 @@ namespace adiar
inline consumer<ValueType>
make_consumer(OutputIt&& iter)
{
return [_iter = std::move(iter)](const ValueType& x) mutable {
*(_iter++) = x;
};
return [_iter = std::move(iter)](const ValueType& x) mutable { *(_iter++) = x; };
}

//////////////////////////////////////////////////////////////////////////////////////////////////
Expand All @@ -92,9 +88,7 @@ namespace adiar
{
using value_type = typename OutputIt::container_type::value_type;

return [&iter](const value_type& x) {
*(iter++) = x;
};
return [&iter](const value_type& x) { *(iter++) = x; };
}

//////////////////////////////////////////////////////////////////////////////////////////////////
Expand All @@ -106,9 +100,7 @@ namespace adiar
{
using value_type = typename OutputIt::container_type::value_type;

return [_iter = std::move(iter)](const value_type& x) mutable {
*(_iter++) = x;
};
return [_iter = std::move(iter)](const value_type& x) mutable { *(_iter++) = x; };
}

//////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
Loading

0 comments on commit 81f6dca

Please sign in to comment.