Commit ddaa97bb authored by Armin Sobhani's avatar Armin Sobhani
Browse files

add some commented boost range code snippets

parent 7eacf2bc
......@@ -21,6 +21,10 @@
// #else
// # include <boost/test/detail/unit_test_parameters.hpp>
// #endif //BOOST_VERSION
#include <boost/range/istream_range.hpp>
#include <boost/range/algorithm/copy.hpp>
#include <boost/range/adaptor/reversed.hpp>
#include <boost/range/adaptor/filtered.hpp>
#include <boost/bioseq/type_traits.hpp>
#include <boost/bioseq/sequence.hpp>
......@@ -137,8 +141,15 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(read_multi_fasta, T, seq_types)
// std::list<T> reads;
// std::copy(
// (std::istream_iterator<T>(in))
// , std::istream_iterator<T>()
// std::istream_iterator<T>(in)
// , std::istream_iterator<T>()
// , std::back_inserter(reads) );
// std::list<T> reads;
// boost::copy(
// boost::istream_range<T>(in)
// | boost::adaptors::filtered(
// [] (T r) { return r[0] == 'A'; } )
// , std::back_inserter(reads) );
// std::list<T> reads;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment