\wxheading{Data structures}
-{\small \begin{verbatim}
-typedef T element\_type
-\end{verbatim}}
+{\small%
+\begin{verbatim}
+typedef T element_type
+\end{verbatim}
+}%
\wxheading{Example}
{
public:
MyCar( int price );
+ MyCar( const MyCar& data );
bool operator == ( const MyCar& car ) const;
bool operator != (const MyCar& car) const { return !(*this == car); }
m_data.get()->SetPrice( price );
}
+MyCar::MyCar( const MyCar& car )
+{
+ m_data.reset( car.m_data.get() );
+}
+
bool MyCar::operator == ( const MyCar& car ) const
{
if (m_data.get() == car.m_data.get()) return true;