Skip to content

Commit 4944934

Browse files
committed
Format latest changes
1 parent 84240f5 commit 4944934

File tree

7 files changed

+98
-106
lines changed

7 files changed

+98
-106
lines changed

src/adiar/bdd.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2077,7 +2077,8 @@ namespace adiar
20772077
/// \returns The output iterator at its final state.
20782078
//////////////////////////////////////////////////////////////////////////////////////////////////
20792079
template <typename OutputIt,
2080-
typename = enable_if<!is_convertible<OutputIt, consumer<pair<bdd::label_type, bool>>> && !is_convertible<OutputIt, bdd>>>
2080+
typename = enable_if<!is_convertible<OutputIt, consumer<pair<bdd::label_type, bool>>>
2081+
&& !is_convertible<OutputIt, bdd>>>
20812082
OutputIt
20822083
bdd_satmin(const bdd& f, OutputIt iter)
20832084
{
@@ -2174,7 +2175,8 @@ namespace adiar
21742175
/// \returns The output iterator at its final state.
21752176
//////////////////////////////////////////////////////////////////////////////
21762177
template <typename OutputIt,
2177-
typename = enable_if<!is_convertible<OutputIt, consumer<pair<bdd::label_type, bool>>> && !is_convertible<OutputIt, bdd>>>
2178+
typename = enable_if<!is_convertible<OutputIt, consumer<pair<bdd::label_type, bool>>>
2179+
&& !is_convertible<OutputIt, bdd>>>
21782180
OutputIt
21792181
bdd_satmax(const bdd& f, OutputIt iter)
21802182
{

src/adiar/deprecated.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ namespace adiar
2222
/// \brief The lexicographically smallest x such that f(x) is true.
2323
//////////////////////////////////////////////////////////////////////////////////////////////////
2424
template <typename ForwardIt, typename = enable_if<is_mutable<typename ForwardIt::reference>>>
25-
[[deprecated("Use an output iterator (Did you mean to provide values? Use a constant iterator, for now)")]]
25+
[[deprecated(
26+
"Use an output iterator (Did you mean to provide values? Use a constant iterator, for now)")]]
2627
ForwardIt
2728
bdd_satmin(const bdd& f, ForwardIt begin, ForwardIt end)
2829
{
@@ -34,7 +35,8 @@ namespace adiar
3435
/// \brief The lexicographically largest x such that f(x) is true.
3536
//////////////////////////////////////////////////////////////////////////////
3637
template <typename ForwardIt, typename = enable_if<is_mutable<typename ForwardIt::reference>>>
37-
[[deprecated("Use an output iterator (Did you mean to provide values? Use a constant iterator, for now)")]]
38+
[[deprecated(
39+
"Use an output iterator (Did you mean to provide values? Use a constant iterator, for now)")]]
3840
ForwardIt
3941
bdd_satmax(const bdd& f, ForwardIt begin, ForwardIt end)
4042
{

src/adiar/functional.h

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ namespace adiar
6666
inline consumer<ValueType>
6767
make_consumer(OutputIt& iter)
6868
{
69-
return [&iter](const ValueType& x) {
70-
*(iter++) = x;
71-
};
69+
return [&iter](const ValueType& x) { *(iter++) = x; };
7270
}
7371

7472
//////////////////////////////////////////////////////////////////////////////////////////////////
@@ -78,9 +76,7 @@ namespace adiar
7876
inline consumer<ValueType>
7977
make_consumer(OutputIt&& iter)
8078
{
81-
return [_iter = std::move(iter)](const ValueType& x) mutable {
82-
*(_iter++) = x;
83-
};
79+
return [_iter = std::move(iter)](const ValueType& x) mutable { *(_iter++) = x; };
8480
}
8581

8682
//////////////////////////////////////////////////////////////////////////////////////////////////
@@ -92,9 +88,7 @@ namespace adiar
9288
{
9389
using value_type = typename OutputIt::container_type::value_type;
9490

95-
return [&iter](const value_type& x) {
96-
*(iter++) = x;
97-
};
91+
return [&iter](const value_type& x) { *(iter++) = x; };
9892
}
9993

10094
//////////////////////////////////////////////////////////////////////////////////////////////////
@@ -106,9 +100,7 @@ namespace adiar
106100
{
107101
using value_type = typename OutputIt::container_type::value_type;
108102

109-
return [_iter = std::move(iter)](const value_type& x) mutable {
110-
*(_iter++) = x;
111-
};
103+
return [_iter = std::move(iter)](const value_type& x) mutable { *(_iter++) = x; };
112104
}
113105

114106
//////////////////////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)