2
0
mirror of https://github.com/boostorg/lambda.git synced 2026-01-22 17:22:48 +00:00

converted tabs to spaces

[SVN r13781]
This commit is contained in:
Jaakko Järvi
2002-05-09 17:05:16 +00:00
parent 2942562072
commit d65bfa94ca
5 changed files with 25 additions and 25 deletions

View File

@@ -172,21 +172,21 @@ void test_protect()
for(int j=0; j<3; ++j) a[j] = b[j];
std::for_each(a, a+3,
bind(ll::for_each(), _1, _1 + 5, protect(_1 = ++var(i))));
bind(ll::for_each(), _1, _1 + 5, protect(_1 = ++var(i))));
// This is how you could output the values (it is uncommented, no output
// from a regression test file):
// std::for_each(a, a+3,
// bind(ll::for_each(), _1, _1 + 5,
// std::cout << constant("\nLine ") << (&_1 - a) << " : "
// << protect(_1)
// )
// << protect(_1)
// )
// );
int sum = 0;
std::for_each(a, a+3,
bind(ll::for_each(), _1, _1 + 5,
bind(ll::for_each(), _1, _1 + 5,
protect(sum += _1))
);
BOOST_TEST(sum == (1+15)*15/2);
@@ -194,7 +194,7 @@ void test_protect()
sum = 0;
std::for_each(a, a+3,
bind(ll::for_each(), _1, _1 + 5,
bind(ll::for_each(), _1, _1 + 5,
sum += 1 + protect(_1)) // add element count
);
BOOST_TEST(sum == (1+15)*15/2 + 15);

View File

@@ -123,14 +123,14 @@ int test_main(int, char *[]) {
result =
bind(&sum_of_args_1, // 12
bind(&sum_of_args_4, // 12
bind(&sum_of_args_2, // 3
bind(&sum_of_args_1, // 1
bind(&sum_of_args_1, _1) // 1
),
_2),
_2,
_3,
4)
bind(&sum_of_args_2, // 3
bind(&sum_of_args_1, // 1
bind(&sum_of_args_1, _1) // 1
),
_2),
_2,
_3,
4)
)(i, j, k);
BOOST_TEST(result == 12);

View File

@@ -121,14 +121,14 @@ int test_main(int, char *[]) {
result =
bind(sum_of_args_1, // 12
bind(sum_of_args_4, // 12
bind(sum_of_args_2, // 3
bind(sum_of_args_1, // 1
bind(sum_of_args_1, _1) // 1
),
_2),
_2,
_3,
4)
bind(sum_of_args_2, // 3
bind(sum_of_args_1, // 1
bind(sum_of_args_1, _1) // 1
),
_2),
_2,
_3,
4)
)(i, j, k);
BOOST_TEST(result == 12);

View File

@@ -234,7 +234,7 @@ void delayed_construction()
vector<pair<int, int> > v;
transform(x.begin(), x.end(), y.begin(), back_inserter(v),
bind(constructor<pair<int, int> >(), _1, _2) );
bind(constructor<pair<int, int> >(), _1, _2) );
}
int test_main(int, char *[]) {

View File

@@ -68,7 +68,7 @@ int test_main(int, char *[]) {
]
.else_
[
++var(lt)
++var(lt)
]
]
);
@@ -104,7 +104,7 @@ int test_main(int, char *[]) {
(
do_
[
++var(counta)
++var(counta)
]
.while_(_1--),
++var(countb)
@@ -123,7 +123,7 @@ int test_main(int, char *[]) {
(
for_(var(iii) = 0, var(iii) < _1, ++var(iii))
[
++var(counta)
++var(counta)
],
++var(countb)
)