NaviLibrary::NaviUtilities::InlineVector< T > Class Template Reference

#include <NaviUtilities.h>

List of all members.


Detailed Description

template<class T>
class NaviLibrary::NaviUtilities::InlineVector< T >

This is an incredibly useful utility class for creating small inline vectors quickly.

Note:
For example:
        // Let's say you have some function that accepts a vector of integers, "int addNumbers(std::vector<int> integers);"
        // Why waste code space doing a bunch of myVector.push_back(3), myVector.push_back(5), etc. when you can do this:

        addNumbers(InlineVector<int>(3)(5)(10)); // returns 18

Adapted from http://erdani.org/publications/inline_containers.html


The documentation for this class was generated from the following file:
Generated on Tue Jun 10 22:33:21 2008 for NaviLibrary by  doxygen 1.5.3