Thread: what does it means?

  1. #1
    Registered User
    Join Date
    Sep 2012
    Posts
    13

    what does it means?

    below are the codes:
    Code:
    template <class T> string toStr(const T &x){
    stringstream s; s << x; return s.str();
    }
    
    template <class T> int toInt(const T &x){
    stringstream s; s << x; int r; s >> r; return r;
    }
    I just want to know what it means?

  2. #2
    Registered User
    Join Date
    May 2010
    Posts
    4,632
    Those are C++ template functions. They appear to be converting numbers to strings and strings to integers

    Jim

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. what does ROL means
    By bubblegum in forum C Programming
    Replies: 0
    Last Post: 03-08-2008, 09:20 AM
  2. What does the following means?
    By EeeK in forum C Programming
    Replies: 2
    Last Post: 10-27-2003, 10:15 PM
  3. Anyone know what this means?
    By bigblack in forum C++ Programming
    Replies: 1
    Last Post: 04-15-2002, 07:19 PM
  4. Does anyone know what this means
    By killerasp in forum C++ Programming
    Replies: 3
    Last Post: 02-08-2002, 01:41 AM
  5. What this SQL means ?
    By manova in forum C++ Programming
    Replies: 2
    Last Post: 12-16-2001, 02:02 PM