Public Types | Public Member Functions | Public Attributes | List of all members
MyPtr< T > Struct Template Reference

Public Types

using element_type = T
 

Public Member Functions

 MyPtr (T *p=nullptr)
 
T & operator* ()
 

Public Attributes

T * ptr
 

Detailed Description

template<typename T>
struct MyPtr< T >

Definition at line 35 of file Dereference_test.cc.

Member Typedef Documentation

template<typename T>
using MyPtr< T >::element_type = T

Definition at line 36 of file Dereference_test.cc.

Constructor & Destructor Documentation

template<typename T>
MyPtr< T >::MyPtr ( T *  p = nullptr)
inline

Definition at line 37 of file Dereference_test.cc.

37 : ptr(p) {}
p
Definition: test.py:223

Member Function Documentation

template<typename T>
T& MyPtr< T >::operator* ( )
inline

Definition at line 39 of file Dereference_test.cc.

39 { return *ptr; }

Member Data Documentation

template<typename T>
T* MyPtr< T >::ptr

Definition at line 41 of file Dereference_test.cc.


The documentation for this struct was generated from the following file: