]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/iostreams/example/iterator_range_example.cpp
1 // (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
2 // (C) Copyright 2005-2007 Jonathan Turkanis
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
6 // See http://www.boost.org/libs/iostreams for documentation.
10 #include <boost/iostreams/filtering_stream.hpp>
11 #include <boost/range/iterator_range.hpp>
13 namespace io
= boost::iostreams
;
19 string input
= "Hello World!";
21 io::filtering_istream
in(boost::make_iterator_range(input
));
23 assert(input
== output
);