Smart Pointers

pointer_comparsion_semantic_policy Struct Reference

#include <smart_ptr.hpp>

List of all members.


Detailed Description

This makes smart_ptr compare the pointer address. This policy gives the smart_ptr class normal pointer semantics when use with comparison operators. Comparison operators compare pointer address instead of pointee object. This may be desirable when using generic smart pointer coding, in which smart_ptr needs to work the same as other smart pointers.

See also:
smart_ptr, value_comparsion_semantic_policy, no_comparsion_semantic_policy

Definition at line 300 of file smart_ptr.hpp.

Static Public Member Functions

template<class T1, class T2>
static bool less_than (const T1 &a, const T2 &b)
template<class T1, class T2>
static bool greater_than (const T1 &a, const T2 &b)
template<class T1, class T2>
static bool less_than_or_equal (const T1 &a, const T2 &b)
template<class T1, class T2>
static bool greater_than_or_equal (const T1 &a, const T2 &b)
template<class T1, class T2>
static bool is_equal (const T1 &a, const T2 &b)


The documentation for this struct was generated from the following file:
Generated on Wed Mar 29 21:58:59 2006 for Smart Pointers by  doxygen 1.4.6.Axter [Axter-Extended-Version]