C++Now 2018: Jonathan Boccara “Smart Output Iterators”

preview_player
Показать описание


Smart output iterators are an approach to perform operations on collections in C++. In this session, you'll see what they are and how they complement the STL algorithms and the range library.

Indeed, range-v3's adaptors put some operations inside of the iterators of an *input* collection. What if we put some logic inside the *output* iterators? What are the advantages to do so?

In this session, we'll see various kinds of smart output iterators, such as iterators that help a smooth integration into data structures, and iterators that relieve some of the complexity of the algorithms.

We'll discuss when it makes sense to stick with the STL algorithms, to prefer ranges adaptors, or to go for smart output iterators.,You'll also see a comparison of performance of those designs.

I've used smart output iterators in my code and presented them at the C++ meetup in Paris. I'd like to show them to you to hear your opinion and debate about their interest and about the optimal strategy to manipulate collections in C++.


Jonathan Boccara
Jonathan Boccara is a Principal Engineering Lead at Murex where he works on large codebases in C++.
His primary focus is searching how to make code more expressive. He has dedicated his blog, Fluent C++, to writing expressive code in C++.
He also gives internal trainings on C++ every day, in the short format called "Dailies".

---

*--*

---
Рекомендации по теме
Комментарии
Автор

11:05 sorted_inserter
11:40 custom_inserter
13:05 map_aggregator
15:27 dev_null_iterator

21:04 output_transformer
24:16 output_filter
25:35 output_partitioner
27:30 output_unzipper
29:52 output_demuxer

parnmatt
join shbcf.ru