Re: std::pair

Discussion in 'C++' started by Kai-Uwe Bux, Jan 30, 2009.

  1. Kai-Uwe Bux

    Kai-Uwe Bux Guest

    Andrew Ostry wrote:

    > std::pair is it a c++ object / c++ type or what?


    It's a template. Therefore,

    std::pair< int, char >

    is a type and

    std::pair< int, char > some_pair_variable;

    declares some_pair_variable to be a variable of that type.


    > which header file it comes with?


    #include <utility>



    Best

    Kai-Uwe Bux
     
    Kai-Uwe Bux, Jan 30, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Neil Zanella

    std::pair<,>

    Neil Zanella, Oct 3, 2003, in forum: C++
    Replies:
    14
    Views:
    7,944
    Cy Edmunds
    Oct 6, 2003
  2. Eric Lilja
    Replies:
    5
    Views:
    722
    Eric Lilja
    Mar 4, 2005
  3. Mark P

    std::pair allocator?

    Mark P, Apr 27, 2005, in forum: C++
    Replies:
    6
    Views:
    1,300
    Rolf Magnus
    Apr 27, 2005
  4. Bart Simpson
    Replies:
    6
    Views:
    384
    Diego Martins
    Mar 13, 2006
  5. desktop

    Using std:.pair right

    desktop, Jun 16, 2007, in forum: C++
    Replies:
    18
    Views:
    544
    Andrew Koenig
    Jun 18, 2007
Loading...

Share This Page