Overloading Function Templates | C++ Tutorial

Sdílet
Vložit
  • čas přidán 7. 08. 2024
  • How to overload function templates in C++ to combine the benefits of function overloading and function templates. Source code: github.com/portfoliocourses/c.... Check out www.portfoliocourses.com to build a portfolio that will impress employers!

Komentáře • 13

  • @ieduardoms
    @ieduardoms Před rokem +3

    You explain very clearly and go straight to the point, also your pronunciation and speaking speed is very good. The video is not too long, which is great. Thank you very much.

    • @PortfolioCourses
      @PortfolioCourses  Před rokem +1

      You're very welcome Eduardo, and thank you for sharing this positive feedback! :-)

  • @RazgrizDuTTA
    @RazgrizDuTTA Před 9 měsíci

    This channel is pure gold: bite-sized (or dare I say byte-sized!) tutorials, a very clear voice (that's really important) and on point pedagogy!
    Thank you so much! I am hoping to learn C++ "fast" coming from a Julia and C background.

    • @PortfolioCourses
      @PortfolioCourses  Před 9 měsíci

      You’re welcome I’m really happy you’re enjoying the channel and video format! :-)

  • @rangutango
    @rangutango Před 8 měsíci

    Very clear and straight to the point

  • @visheshpurkait5066
    @visheshpurkait5066 Před rokem +1

    very helpful video, great job!

    • @PortfolioCourses
      @PortfolioCourses  Před rokem +1

      Thank you Vishesh, I'm really glad that you found the video helpful! :-)

  • @johnibat
    @johnibat Před rokem

    Thank you...Very clear...🙏

  • @germankoga8640
    @germankoga8640 Před rokem

    Since it's generic, what would happen if I send as a parameters things that didn't make sense like things I can't add? it's flexible but it seems like it could allow unvalid input, should it be any error handling inside the template function to see if it makes sense for the type being used?

    • @PortfolioCourses
      @PortfolioCourses  Před rokem +1

      Great question Brandon! :-) If the operation is not supported, than the code will not compile. The compiler will be able to see that we are trying to use a type that does not support the add operation, for example, and it will let us know.

  • @didiTchu
    @didiTchu Před rokem +2

    best