Milo  0.1
Milo:EquationManipulationProgram
Classes
smart.h File Reference
#include <vector>
#include <memory>
#include <initializer_list>
Include dependency graph for smart.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SmartPtr< T >
 
class  SmartVector< T >
 

Functions

Smart Pointer Templates
template<class T >
bool operator== (const SmartPtr< T > &p, const typename SmartVector< T >::iterator &it)
 
template<class T >
bool operator!= (const SmartPtr< T > &p, const typename SmartVector< T >::iterator &it)
 
template<class T >
bool operator== (const typename SmartVector< T >::iterator &it, const SmartPtr< T > &p)
 
template<class T >
bool operator!= (const typename SmartVector< T >::iterator &it, const SmartPtr< T > &p)
 

Detailed Description

This file templates that support SmartPtr and SmartVector. These classes extend std::shared_ptr<T> so they more easily work with the pointer T*.

Function Documentation

template<class T >
bool operator!= ( const SmartPtr< T > &  p,
const typename SmartVector< T >::iterator &  it 
)

template operator!= overload to allow comparison of SmartPtr to SmartVector::iterator.

Returns
True if both contain different pointer address.
template<class T >
bool operator!= ( const typename SmartVector< T >::iterator &  it,
const SmartPtr< T > &  p 
)

template operator!= overload to allow comparison of SmartPtr to SmartVector::iterator.

Returns
True if both contain different pointer address.
template<class T >
bool operator== ( const SmartPtr< T > &  p,
const typename SmartVector< T >::iterator &  it 
)

template operator== overload to allow comparison of SmartPtr to SmartVector::iterator.

Returns
True if both contain same pointer address.
template<class T >
bool operator== ( const typename SmartVector< T >::iterator &  it,
const SmartPtr< T > &  p 
)

template operator== overload to allow comparison of SmartPtr to SmartVector::iterator.

Returns
True if both contain same pointer address.