std::format Introduction (C++20) - C++ Utilities | Modern Cpp Series Ep. 187

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • ►Full C++ Series Playlist: • The C++ Programming La...
    ►Find full courses on: courses.mshah.io/
    ►Join as Member to Support the channel: / @mikeshah
    ►Lesson Description: In this lesson we take a look at std::format which was introduced in C++ 20. This was a big innovation for allowing safer and easier access to formatted strings (and by many benchmarks, even more performant!). In this lesson I'll show you how to get started and formatting strings. We'll cover the basics, using positional specifiers to arrange arguments, format specifiers, fill, alignment, and precision! This is an action packed lesson, and I hope you enjoy it! As always, feel free to bring up any questions and discuss what you've learned!
    ►RUclips Channel: / mikeshah
    ►Please like and subscribe to help the channel!
    ►Join our free community: courses.mshah....

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

  • @GaryChike
    @GaryChike 2 месяца назад +1

    Nice video on C++20 feature `std::format` ... I'm currently messing with a C++23 feature `std::print` and `std::println` - just have to use a special compiler flag with GCC 14.1.0 `-lstdc++exp` It works!

    • @MikeShah
      @MikeShah  2 месяца назад +1

      Good to know! I was trying to get std::format with ranges to work, so I'll try that out!

    • @GaryChike
      @GaryChike 2 месяца назад +1

      @@MikeShah🪐💫

  • @gurashimozmel8824
    @gurashimozmel8824 2 месяца назад +1

    thank you man you're awesome I have learned a lot from you …..

    • @MikeShah
      @MikeShah  2 месяца назад

      Cheers, I'm happy to hear that 🙂

  • @bsdooby
    @bsdooby 2 месяца назад +1

    A+ for using braced initialization ;)

  • @Chupe_chupe
    @Chupe_chupe 2 месяца назад +1

    Great video Mike

  • @kevinchopra9111
    @kevinchopra9111 2 месяца назад +1

    Loads of set theory in this cool...

    • @MikeShah
      @MikeShah  2 месяца назад

      Lots of {}'s indeed! 😆

  • @celestialbeing4767
    @celestialbeing4767 2 месяца назад +1

    Vim or neovim user.

    • @MikeShah
      @MikeShah  2 месяца назад

      Using vanilla vim right now, might consider neovim