|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86406 - trunk/libs/coroutine/doc
From: oliver.kowalke_at_[hidden]
Date: 2013-10-23 12:29:25
Author: olli
Date: 2013-10-23 12:29:25 EDT (Wed, 23 Oct 2013)
New Revision: 86406
URL: http://svn.boost.org/trac/boost/changeset/86406
Log:
coroutine: documentation update
Text files modified:
trunk/libs/coroutine/doc/motivation.qbk | 14 +++++++-------
trunk/libs/coroutine/doc/unidirect.qbk | 8 ++++----
2 files changed, 11 insertions(+), 11 deletions(-)
Modified: trunk/libs/coroutine/doc/motivation.qbk
==============================================================================
--- trunk/libs/coroutine/doc/motivation.qbk Wed Oct 23 11:53:47 2013 (r86405)
+++ trunk/libs/coroutine/doc/motivation.qbk 2013-10-23 12:29:25 EDT (Wed, 23 Oct 2013) (r86406)
@@ -39,7 +39,7 @@
invalidated).
struct node{
- typedef std::shared_ptr<node> ptr_t;
+ typedef boost::shared_ptr<node> ptr_t;
// Each tree node has an optional left subtree,
// an optional right subtree and a value of its own.
@@ -124,9 +124,9 @@
std::cout << "left tree from d == right tree from b? "
<< std::boolalpha
- << std::equal(std::begin(left_d_reader),
- std::end(left_d_reader),
- std::begin(right_b_reader))
+ << std::equal(boost::begin(left_d_reader),
+ boost::end(left_d_reader),
+ boost::begin(right_b_reader))
<< std::endl;
}
{
@@ -144,9 +144,9 @@
std::cout << "left tree from d == right tree from x? "
<< std::boolalpha
- << std::equal(std::begin(left_d_reader),
- std::end(left_d_reader),
- std::begin(right_x_reader))
+ << std::equal(boost::begin(left_d_reader),
+ boost::end(left_d_reader),
+ boost::begin(right_x_reader))
<< std::endl;
}
std::cout << "Done" << std::endl;
Modified: trunk/libs/coroutine/doc/unidirect.qbk
==============================================================================
--- trunk/libs/coroutine/doc/unidirect.qbk Wed Oct 23 11:53:47 2013 (r86405)
+++ trunk/libs/coroutine/doc/unidirect.qbk 2013-10-23 12:29:25 EDT (Wed, 23 Oct 2013) (r86406)
@@ -282,14 +282,14 @@
check if __pull_coro__ is valid after return from __pull_coro_op__, e.g.
__pull_coro__ has values and __coro_fn__ has not terminated.
- boost::coroutines::coroutine<std::tuple<int,int>>::push_type sink(
- [&](boost::coroutines::coroutine<std::tuple<int,int>>::pull_type& source){
+ boost::coroutines::coroutine<boost::tuple<int,int>>::push_type sink(
+ [&](boost::coroutines::coroutine<boost::tuple<int,int>>::pull_type& source){
// access tuple {7,11}; x==7 y==1
int x,y;
- std::tie(x,y)=source.get();
+ boost::tie(x,y)=source.get();
});
- sink(std::make_tuple(7,11));
+ sink(boost::make_tuple(7,11));
[heading exceptions]
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk