Multidimensional C++ - Bryce Adelstein Lelbach - CppNorth 2022

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ต.ค. 2024

ความคิดเห็น • 6

  • @jaycarlson2579
    @jaycarlson2579 2 ปีที่แล้ว +4

    I really like how he is driving the goal of having nice to read code as the important as the execution speed.

  • @mbabb
    @mbabb 2 ปีที่แล้ว +1

    Excellent talk - slides were particularly wonderful insofar as the color coding. Looking forward to mdspan!

  • @victoreijkhout7115
    @victoreijkhout7115 ปีที่แล้ว

    Slide 42: `extent` can return an int or "dynamic", so you'd have to cast it first.

  • @haimgrn
    @haimgrn ปีที่แล้ว

    Is there already a proposal for integrating this md-range feature into the C++ standard?

  • @victotronics
    @victotronics ปีที่แล้ว

    Slide 46: the `[=]` should be `[&]` otherwise you can not write `B`.

    • @haimgrn
      @haimgrn ปีที่แล้ว +1

      I think you are referring to slide 45, but anyway `[=]` is okay, because span and mdspan are "reference types". This is similar to shared_ptr for example, that the referred object can mutate even with `const shared_ptr`.