Overloading Function Template In C++

Поділитися
Вставка
  • Опубліковано 19 жов 2024

КОМЕНТАРІ • 46

  • @mshingote
    @mshingote 4 роки тому +6

    These are very helpful videos for interview prep.

    • @CppNuts
      @CppNuts  4 роки тому +2

      Glad you think so!

  • @aryanpanchal9248
    @aryanpanchal9248 3 роки тому +2

    clean, crisp and to the point, thanks for this awesome tutorial

    • @CppNuts
      @CppNuts  3 роки тому +1

      Glad it helped!

  • @chandanbhagat6584
    @chandanbhagat6584 2 місяці тому

    Cover all important scenario, thank you 🙏

  • @lokdriod3091
    @lokdriod3091 5 років тому +2

    Explained with such an easy...it need lot of efforts...thanks sir.

    • @CppNuts
      @CppNuts  5 років тому

      Thanks for the appreciation dude..

  • @mansidara7427
    @mansidara7427 3 роки тому +1

    why we use const& for all the functions here?

  • @abhilashmanikonda5831
    @abhilashmanikonda5831 3 роки тому

    whta is the difference between these two template and template though we are getting same result when we implement function templates concept

  • @munawarali8305
    @munawarali8305 3 роки тому +1

    Hi,
    could you please explain why are we using const& ?

  • @rampandi9302
    @rampandi9302 5 років тому +1

    Thanku sir gd explanation 😍😍waiting fr next video

  • @saravananjagadeeesan593
    @saravananjagadeeesan593 3 роки тому +1

    Sir why are we passing the arguments by reference ???

  • @rasmiranjanbabu
    @rasmiranjanbabu Рік тому

    This is an awesome video. Loved it

  • @poovendhans1557
    @poovendhans1557 4 роки тому

    bro, under this template function (template ) we didnt mention scope resolution operator for max function, so it should be call inbuilt max function right, then why its calling our function ?

  • @rahulraaghava3603
    @rahulraaghava3603 3 роки тому

    Thanks for the clear and interesting explanation

    • @CppNuts
      @CppNuts  3 роки тому

      Glad it was helpful!

  • @gaurvendrasingh4573
    @gaurvendrasingh4573 4 роки тому

    Sir What is the significance const& ? you have any video regarding this sir??

  • @123TeeMee
    @123TeeMee 4 роки тому +1

    Thank you, very well explained.

  • @Manishkumar-ie2oo
    @Manishkumar-ie2oo 5 років тому +2

    Please pay attention on my comment . Please make a video on your programming life. How to you get knowledge. What the medium you have used and now using. Please share some experience that would help all your viewer . Thanks

    • @CppNuts
      @CppNuts  5 років тому

      Thanks for the comment dude, and good advice i may think upon this.
      Keep learning!!

  • @shiwanisingh3152
    @shiwanisingh3152 5 років тому +1

    Thanku so much sir...u explain really well...but may u please upload a video on operations performed on sets...like complement of a set, union of set

    • @CppNuts
      @CppNuts  5 років тому

      Thanks for your comment, I will explain this in STL part.

    • @shiwanisingh3152
      @shiwanisingh3152 5 років тому +1

      @@CppNuts okay thank you sir

    • @CppNuts
      @CppNuts  5 років тому

      You are welcome dude!!

  • @srinathsethumadhavan739
    @srinathsethumadhavan739 4 роки тому +1

    the return statement returns some data and it is captured by what ?
    To where it is returning ?

    • @CppNuts
      @CppNuts  4 роки тому

      functions can return to cout and it will print them if they are primitive data types if not then it will check if there is any overloaded cout which can print non-primitive data type.

  • @mentalthink1
    @mentalthink1 5 років тому +1

    Thanks a lot, very nice video.

    • @CppNuts
      @CppNuts  5 років тому +1

      Thanks man...

  • @maturinagababu98
    @maturinagababu98 4 роки тому

    could you please share the link for class template?

  • @abhishekkalgudi4636
    @abhishekkalgudi4636 2 роки тому

    WHAT IS MEANT BY CONST& BEING USED IN THE CODE
    PLS HELP

  • @ApoorvSaxena8
    @ApoorvSaxena8 3 роки тому

    Thanks sir for the content

    • @CppNuts
      @CppNuts  3 роки тому +1

      Glad I could help.

  • @bismuth8323
    @bismuth8323 4 роки тому

    Sir what IDE do you use?

  • @srinathsethumadhavan739
    @srinathsethumadhavan739 4 роки тому +1

    :: max means u r giving global scope and max function inside the template should be a builtin max function right? y built-in function not executed in this case y r u not using:: for max inside the template

    • @CppNuts
      @CppNuts  4 роки тому

      That's just a choice.

  • @shekharsulgiti7839
    @shekharsulgiti7839 4 роки тому +1

    Sir why arguments are cathed with const& ?

    • @CppNuts
      @CppNuts  4 роки тому +2

      Const to say that we don't want to change the parameter.
      & to say that we don't want to create temporary object, point the original parameter.

  • @prasadchaskar4413
    @prasadchaskar4413 5 років тому

    Compiler ka name kya haii

  • @ankitahlawat4812
    @ankitahlawat4812 5 років тому +1

    Video is not visible ,visibility is vry vry less

    • @CppNuts
      @CppNuts  5 років тому

      Actually I forgot to disable eye saver mode in monitor.

    • @ankitahlawat4812
      @ankitahlawat4812 5 років тому

      @@CppNuts
      Cool vagdu...nxt time you can do..but video is vry vry good😊😊