STL std::multiset (And how to compare non-trivial types) | Modern Cpp Series Ep. 123

Поделиться
HTML-код
  • Опубликовано: 25 ноя 2024

Комментарии • 13

  • @thestarinthesky_
    @thestarinthesky_ Год назад +2

    Love you Mike . You're so awesome! I love your channel and super helpful and informative to me while doing coding challenges to prepare for interview questions. ❤

    • @MikeShah
      @MikeShah  Год назад

      Cheers, thank you for the kind words! Good luck on your interview

  • @moinmemon5764
    @moinmemon5764 Год назад +1

    All the best bro

  • @irfanukani
    @irfanukani Год назад +1

    Wow! Awesome Content!

  • @chihyuanchen84
    @chihyuanchen84 Год назад +2

    I followed the custom class example, somehow my compiler asked me to add #include for use `std::for_each` but seems it's not the case of Mike's example. Not knowing what's the difference. Thanks for the great content!

    • @MikeShah
      @MikeShah  Год назад +4

      #include is the right thing to do, some compilers may add some standard libraries in implicitly, but always better in my opinion to be explicit and put in the #include 🙂

  • @__hannibaal__
    @__hannibaal__ Год назад +1

    Hi mike,

  • @jeevanreddy7989
    @jeevanreddy7989 Год назад +1

    Mike... when we have a comparator in the form of a functor ( struct compare in the video), shouldn't we pass instance of the struct compare, rather than compare itself? for ex: std::multi_set or std::multi_set etc where comp1 is the instance of struct compare.

    • @MikeShah
      @MikeShah  Год назад

      Can you provide a timestamp? I suppose the concern is we want to use the instance in the case of polymorphism?

    • @jeevanreddy7989
      @jeevanreddy7989 Год назад

      @@MikeShah it's at timestamp 12.10 min, where you mention std::multiset multi. Shouldn't it be declared as std::multiset multi?

  • @windowsbuilderthegreat3121
    @windowsbuilderthegreat3121 Год назад

    Please can you do more videos on wxWidgets, specifically using the WXAUI