Neat Vectors  5
Hanes
Classes | Functions
vector.h File Reference

A Vector library. More...

#include <stdexcept>
#include <iostream>
#include "vector.hpp"

Go to the source code of this file.

Classes

class  Vector< FUN >
 A (very neat) vector. More...
 

Functions

template<class FUN >
ostream & operator<< (ostream &out, const Vector< FUN > &v)
 Stream insertion operator for Vector. More...
 

Detailed Description

A Vector library.

Function Documentation

◆ operator<<()

template<class FUN >
ostream & operator<< ( ostream &  out,
const Vector< FUN > &  v 
)

Stream insertion operator for Vector.

Precondition
Stream insertion operator is defined for FUN.
Postcondition
The contents of the vector are printed to the ouptut stream.
Returns
the modified output stream.