Can Template Container hold different type object at a time.

Discussion in 'C++' started by Piaoger Gong, Oct 10, 2006.

  1. Piaoger Gong

    Piaoger Gong Guest

    Can Template Container hold different type object at a time as the
    following style:

    Node<doule> dNode;
    Node<int> iNode;

    Is there anyway to have dNode and iNode in the same container?

    Thanks in Advance,
    Piaoger
    Piaoger Gong, Oct 10, 2006
    #1
    1. Advertising

  2. Piaoger Gong

    Guest

    may be boost::any can help you!
    Piaoger Gong 写é“:

    > Can Template Container hold different type object at a time as the
    > following style:
    >
    > Node<doule> dNode;
    > Node<int> iNode;
    >
    > Is there anyway to have dNode and iNode in the same container?
    >
    > Thanks in Advance,
    > Piaoger
    , Oct 10, 2006
    #2
    1. Advertising

  3. Piaoger Gong

    Sumit Rajan Guest

    Sumit Rajan, Oct 10, 2006
    #3
    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. Replies:
    7
    Views:
    23,221
  2. maazbecin

    why "setup-time and hold-time"?

    maazbecin, Jul 24, 2006, in forum: VHDL
    Replies:
    0
    Views:
    3,145
    maazbecin
    Jul 24, 2006
  3. Simon L
    Replies:
    3
    Views:
    391
    Jeff Flinn
    Mar 31, 2006
  4. Replies:
    5
    Views:
    535
    Thomas J. Gritzan
    Oct 6, 2006
  5. mrstephengross
    Replies:
    5
    Views:
    357
    mrstephengross
    May 23, 2008
Loading...

Share This Page