Thread: Vectors + Classes = Confusing

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #26
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Not quite... Rather, it is another template argument when you create the vector. The beauty of templates (ignoring really cool template metaprogramming) is that you can create user customizable code that is standard (term used loosely, but it still holds in the strict sense as well).

    *edit *
    Look at SGI's documentation (my favorite source for STL docs) here: http://www.sgi.com/tech/stl/stl_index_cat.html

    The section at the bottom is... Drum roll, please.... Allocators.
    Last edited by Zach L.; 12-15-2004 at 07:53 PM.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. vector of vectors containing classes
    By larne in forum C++ Programming
    Replies: 3
    Last Post: 01-13-2009, 07:19 AM
  2. classes and vectors
    By izuael in forum C++ Programming
    Replies: 10
    Last Post: 11-27-2006, 04:19 PM
  3. Vectors and custom classes
    By cunnus88 in forum C++ Programming
    Replies: 16
    Last Post: 05-12-2006, 05:11 AM
  4. vectors and classes
    By jimothygu in forum C++ Programming
    Replies: 3
    Last Post: 04-27-2003, 07:53 PM
  5. How To use vectors for custom classes
    By johnnyd in forum C++ Programming
    Replies: 14
    Last Post: 03-25-2003, 10:04 PM