Fix handler hook documentation.

This commit is contained in:
Christopher Kohlhoff 2011-03-30 22:53:27 +11:00
parent f2ab65e03c
commit 13d0261e10
2 changed files with 6 additions and 6 deletions

View File

@ -19,7 +19,7 @@ object taking no arguments.
[[expression] [return type] [assertion/note\npre/post-conditions]]
[
[``
using namespace asio;
using asio::asio_handler_allocate;
asio_handler_allocate(s, &h);
``]
[`void*`]
@ -34,7 +34,7 @@ object taking no arguments.
]
[
[``
using namespace asio;
using asio::asio_handler_deallocate;
asio_handler_deallocate(p, s, &h);
``]
[]
@ -48,7 +48,7 @@ object taking no arguments.
]
[
[``
using namespace asio;
using asio::asio_handler_invoke;
asio_handler_invoke(f, &h);
``]
[]

View File

@ -137,7 +137,7 @@ as follows:
void* asio_handler_allocate(size_t size,
bound_read_handler<ReadHandler>* this_handler)
{
using namespace asio;
using asio::asio_handler_allocate;
return asio_handler_allocate(size, &this_handler->handler_);
}
@ -145,7 +145,7 @@ as follows:
void asio_handler_deallocate(void* pointer, std::size_t size,
bound_read_handler<ReadHandler>* this_handler)
{
using namespace asio;
using asio::asio_handler_deallocate;
asio_handler_deallocate(pointer, size, &this_handler->handler_);
}
@ -153,7 +153,7 @@ as follows:
void asio_handler_invoke(const F& f,
bound_read_handler<ReadHandler>* this_handler)
{
using namespace asio;
using asio::asio_handler_invoke;
asio_handler_invoke(f, &this_handler->handler_);
}