Smart Pointers

value_arithmetic_semantic_policy Struct Reference

#include <smart_ptr.hpp>

List of all members.


Detailed Description

This is a policy to allow arithmetic operators to target the pointee. Use this policy to allow arithmetic operators to target the pointee instead of the pointer. Normally, smart pointers try to emulate raw pointers, and when arithmetic operations are performed using the pointer, instead of what the pointer is pointing to. This policy allows arithmetic operators to perform operations on the pointee, instead of the pointer.
Example Usage.

void example_no_arithmetic_semantic_policy_usage()
{
}

See also:
smart_ptr, no_arithmetic_semantic_policy

Definition at line 356 of file smart_ptr.hpp.

Static Public Member Functions

template<class T1, class T2>
static T1 & plus_equal_smart_ptr (T1 &a, const T2 &b)
template<class T1, class T2>
static T1 & plus_equal (T1 &a, const T2 &b)
template<class T1, class T2>
static T1 & minus_equal_smart_ptr (T1 &a, const T2 &b)
template<class T1, class T2>
static T1 & minus_equal (T1 &a, const T2 &b)
template<class T1, class T2>
static T1 plus (const T1 &a, const T2 &b)
template<class T1, class T2>
static T1 minus (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]