what does T" means

Discussion in 'C' started by ravi_garg, Oct 24, 2007.

  1. ravi_garg

    ravi_garg New Member

    Joined:
    Oct 9, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    what does T" means in the following signature..
    Code:
    template <typename T>
    const T" operator [] ( int idx) const;
    Here T is template name but what does " means... :confused:
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,376
    Likes Received:
    388
    Trophy Points:
    83
    Try compiling and see if it compiles correctly without any errors / warnings.
     
  3. ravi_garg

    ravi_garg New Member

    Joined:
    Oct 9, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Ya compiler does give an error.
    The piece of code is taken form an e-book.
    probably some typo.
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,376
    Likes Received:
    388
    Trophy Points:
    83
    Looks like
     
  5. Manojbijnori

    Manojbijnori New Member

    Joined:
    Jun 16, 2009
    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    Lecturer In Computer Science Department In Enginer
    Location:
    Bijnore
    Here T is a data type for the class type variable:cryin::mad:

    =ravi_garg;19559]what does T" means in the following signature..
    Code:
    template <typename T>
    const T" operator [] ( int idx) const;
    Here T is template name but what does " means... :confused:[/quote]
     
  6. naimish

    naimish New Member

    Joined:
    Jun 29, 2009
    Messages:
    1,043
    Likes Received:
    18
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    On Earth
    T is a parameter over here.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice