Range Algorithms, Views and Actions: A Comprehensive Guide - Dvir Yitzchaki - CppCon 2019

Sdílet
Vložit
  • čas přidán 30. 05. 2024
  • CppCon.org
    Discussion & Comments: / cpp
    Presentation Slides, PDFs, Source Code and other presenter materials are available at: github.com/CppCon/CppCon2019
    -
    Range Algorithms, Views and Actions: A Comprehensive Guide
    STL algorithms are something every C++ programmer should know. With ranges being voted in C++ 20, there are even more useful tools that we should at least be aware of, if not use daily.
    Using ranges helps writing a code which is great in expressiveness and safety and does not fall behind in performance. In this talk we will cover what ranges add to the C++20 standard library, as well as go over all the different views and actions available in range-v3 library which can be used today.
    This talk is inspired by Jonathan Boccara’s talk "105 algorithms in less than an hour".
    -
    Dvir Yitzchaki
    Dvir is a senior software engineer at Verizon Media. He has been doing C++ for 12 years, lately only for a hobby. He has contributed to a number of open source projects including Hunter package manager and Catch2 unit testing framework. He has spoken for Core C++ meetup and conference.
    -
    Videos Filmed & Edited by Bash Films: www.BashFilms.com
    *-----*
    Register Now For CppCon 2022: cppcon.org/registration/
    *-----*
  • Věda a technologie

Komentáře • 5

  • @gregwoolley
    @gregwoolley Před 3 lety +1

    Thank you, very helpful.

  • @cre3per_
    @cre3per_ Před 4 lety +1

    why were these functions placed in a new namespace as opposed to overloading the existing functions in std::?

    • @zanonymouzzanonymouz
      @zanonymouzzanonymouz Před 4 lety

      czcams.com/video/vJ290qlAbbw/video.html 13:09

    • @ChristianBrugger
      @ChristianBrugger Před 7 měsíci

      Some have different return types, e.g. std::ranges::for_each also returns the last iterator, while std::for_each does not. So it would make calls ambiguous.

  • @slavamelanko5992
    @slavamelanko5992 Před 4 lety

    Awesome guide!