Add buffers_iterator_type trait

This commit is contained in:
Vinnie Falco
2018-12-19 20:59:20 -08:00
parent 1998bad89d
commit 8f1faababd
5 changed files with 72 additions and 0 deletions
+12
View File
@@ -107,6 +107,18 @@ public:
std::array<int, 3>
>>::value);
// buffers_iterator_type
BOOST_STATIC_ASSERT(
std::is_same<net::const_buffer const*, buffers_iterator_type<
net::const_buffer
>>::value);
BOOST_STATIC_ASSERT(
std::is_same<net::mutable_buffer const*, buffers_iterator_type<
net::mutable_buffer
>>::value);
// javadoc: buffers_type
template <class BufferSequence>
buffers_type <BufferSequence>