Skip to content

Commit a554eb0

Browse files
Kojoleyolk
authored andcommitted
Move library include to the top
This helps ensure that library inclusion is self sustainable
1 parent 25b1690 commit a554eb0

20 files changed

+40
-22
lines changed

example/asymmetric/chaining.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <iostream>
810
#include <iomanip>
911
#include <string>
1012
#include <cctype>
1113
#include <sstream>
1214

1315
#include <boost/bind.hpp>
14-
#include <boost/coroutine/all.hpp>
1516
#include <boost/foreach.hpp>
1617

1718
typedef boost::coroutines::asymmetric_coroutine<std::string> coro_t;

example/asymmetric/echo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <cstdlib>
810
#include <iostream>
911

1012
#include <boost/bind.hpp>
11-
#include <boost/coroutine/all.hpp>
1213

1314
typedef boost::coroutines::asymmetric_coroutine< void >::pull_type pull_coro_t;
1415
typedef boost::coroutines::asymmetric_coroutine< void >::push_type push_coro_t;

example/asymmetric/exception.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <cstdlib>
810
#include <iostream>
911
#include <stdexcept>
1012
#include <string>
1113

1214
#include <boost/bind.hpp>
13-
#include <boost/coroutine/all.hpp>
1415
#include <boost/throw_exception.hpp>
1516

1617
typedef boost::coroutines::asymmetric_coroutine< int >::pull_type pull_coro_t;

example/asymmetric/fibonacci.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <cstdlib>
810
#include <iostream>
911

1012
#include <boost/range.hpp>
11-
#include <boost/coroutine/all.hpp>
1213

1314
void fibonacci( boost::coroutines::asymmetric_coroutine< int >::push_type & sink)
1415
{

example/asymmetric/layout.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <iostream>
810
#include <iomanip>
911
#include <vector>
@@ -12,7 +14,6 @@
1214

1315
#include <boost/assign/list_of.hpp>
1416
#include <boost/bind.hpp>
15-
#include <boost/coroutine/all.hpp>
1617
#include <boost/range.hpp>
1718

1819
struct FinalEOL

example/asymmetric/parallel.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <cstdlib>
810
#include <iostream>
911

1012
#include <boost/bind.hpp>
11-
#include <boost/coroutine/all.hpp>
1213

1314
void first( boost::coroutines::asymmetric_coroutine< void >::push_type & sink)
1415
{

example/asymmetric/power.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <cstdlib>
810
#include <iostream>
911

1012
#include <boost/bind.hpp>
1113
#include <boost/foreach.hpp>
1214
#include <boost/range.hpp>
13-
#include <boost/coroutine/all.hpp>
1415

1516
void power( boost::coroutines::asymmetric_coroutine< int >::push_type & sink, int number, int exponent)
1617
{

example/asymmetric/same_fringe.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <cstddef>
810
#include <cstdlib>
911
#include <iostream>
@@ -14,7 +16,6 @@
1416
#include <boost/bind.hpp>
1517
#include <boost/range.hpp>
1618
#include <boost/shared_ptr.hpp>
17-
#include <boost/coroutine/all.hpp>
1819

1920
struct node
2021
{

example/asymmetric/segmented_stack.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <iostream>
810

911
#include <boost/assert.hpp>
1012
#include <boost/config.hpp>
11-
#include <boost/coroutine/all.hpp>
1213

1314
int count = 384;
1415

example/asymmetric/simple.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
#include <boost/coroutine/all.hpp>
2+
13
#include <cstdlib>
24
#include <iostream>
35

46
#include <boost/bind.hpp>
5-
#include <boost/coroutine/all.hpp>
67

78
#include "X.h"
89

example/asymmetric/test.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#include <boost/bind.hpp>
21
#include <boost/coroutine/all.hpp>
32

3+
#include <boost/bind.hpp>
4+
45
#include "X.h"
56

67
typedef boost::coroutines::asymmetric_coroutine< X& >::pull_type pull_coro_t;

example/asymmetric/tree.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
#ifndef TREE_H
88
#define TREE_H
99

10+
#include <boost/coroutine/all.hpp>
11+
1012
#include <cstddef>
1113
#include <string>
1214

1315
#include <boost/assert.hpp>
1416
#include <boost/config.hpp>
15-
#include <boost/coroutine/all.hpp>
1617
#include <boost/intrusive_ptr.hpp>
1718

1819
#if defined(_MSC_VER)

example/asymmetric/unwind.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <cstdlib>
810
#include <iostream>
911

1012
#include <boost/bind.hpp>
11-
#include <boost/coroutine/all.hpp>
1213

1314
struct X : private boost::noncopyable
1415
{

example/symmetric/dice_game.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <cstdlib>
810
#include <iostream>
911

1012
#include <boost/bind.hpp>
11-
#include <boost/coroutine/all.hpp>
1213
#include <boost/move/move.hpp>
1314
#include <boost/random/random_device.hpp>
1415
#include <boost/random/uniform_int_distribution.hpp>

example/symmetric/merge_arrays.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <cstdlib>
810
#include <cstddef>
911
#include <iostream>
1012
#include <vector>
1113

1214
#include <boost/bind.hpp>
13-
#include <boost/coroutine/all.hpp>
1415
#include <boost/foreach.hpp>
1516

1617
typedef boost::coroutines::symmetric_coroutine< void > coro_t;

example/symmetric/segmented_stack.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <iostream>
810

911
#include <boost/assert.hpp>
1012
#include <boost/config.hpp>
11-
#include <boost/coroutine/all.hpp>
1213
#include <boost/thread.hpp>
1314

1415
int count = 384;

example/symmetric/simple.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <cstdlib>
810
#include <iostream>
911

1012
#include <boost/bind.hpp>
11-
#include <boost/coroutine/all.hpp>
1213

1314
typedef boost::coroutines::symmetric_coroutine< void > coro_t;
1415

example/symmetric/unwind.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <cstdlib>
810
#include <iostream>
911

1012
#include <boost/bind.hpp>
11-
#include <boost/coroutine/all.hpp>
1213

1314
struct X : private boost::noncopyable
1415
{

test/test_asymmetric_coroutine.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/asymmetric_coroutine.hpp>
8+
79
#include <algorithm>
810
#include <iostream>
911
#include <sstream>
@@ -23,8 +25,6 @@
2325
#include <boost/tuple/tuple.hpp>
2426
#include <boost/utility.hpp>
2527

26-
#include <boost/coroutine/asymmetric_coroutine.hpp>
27-
2828
namespace coro = boost::coroutines;
2929

3030
int value1 = 0;

test/test_symmetric_coroutine.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/symmetric_coroutine.hpp>
8+
79
#include <algorithm>
810
#include <iostream>
911
#include <sstream>
@@ -24,8 +26,6 @@
2426
#include <boost/tuple/tuple.hpp>
2527
#include <boost/utility.hpp>
2628

27-
#include <boost/coroutine/symmetric_coroutine.hpp>
28-
2929
namespace coro = boost::coroutines;
3030

3131
bool value1 = false;

0 commit comments

Comments
 (0)