• @Valmond
        link
        English
        51 year ago

        How so, templates make for less code usually? Or like template meta prog?

        I’m a C++ dev and I’m lost on this one :-p plz send help

        • Phrodo_00
          link
          fedilink
          41 year ago

          I think it’s because each template specialization works kind of like a new copy of a class.

          • @Valmond
            link
            11 year ago

            Still not getting it, I mean you don’t even get to see the code? IDK

        • @[email protected]
          link
          fedilink
          English
          21 year ago

          /shrug

          That’s my best guess, in the sense that that’s what the compiler ends up producing, for templated code: the same code copy-pasted for however many different use cases you have.