Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. Is using ranges in c++ advisable at all?
Forum Updated to NodeBB v4.3 + New Features

Is using ranges in c++ advisable at all?

Scheduled Pinned Locked Moved Unsolved C++ Gurus
3 Posts 3 Posters 503 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Sachin BhattS Offline
    Sachin BhattS Offline
    Sachin Bhatt
    wrote on last edited by
    #1

    I find the traditional syntax of most c++ stl algorithms annoying; that using them is lengthy to write is only a small issue, but that they always need to operate on existing objects limits their composability considerably.

    Could someone Advice what else can be done?

    jsulmJ 1 Reply Last reply
    0
    • Sachin BhattS Sachin Bhatt

      I find the traditional syntax of most c++ stl algorithms annoying; that using them is lengthy to write is only a small issue, but that they always need to operate on existing objects limits their composability considerably.

      Could someone Advice what else can be done?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Sachin-Bhatt said in Is using ranges in c++ advisable at all?:

      but that they always need to operate on existing objects

      On what else should they operate? On non-existent objects? Can you explain better what exactly you are asking?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • Chris KawaC Offline
        Chris KawaC Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Is using ranges in c++ advisable at all?

        Do you mean the C++20 ranges? Yeah, sure, go ahead. That's what they're for.

        but that they always need to operate on existing objects

        I don't think I understand that part. stl algorithms operate mostly on iterators. Those can be anything as long as they satisfy the iterator interface.

        1 Reply Last reply
        2

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved