4 #ifndef UTILMM_SMART_POINTER_HEADER 5 # define UTILMM_SMART_POINTER_HEADER 6 #include "utilmm/config/config.h" 36 : std::runtime_error(message) {}
51 template<
class Manager>
86 explicit pointer(pointer_type ptr=0);
123 void reset(pointer_type ptr=0);
159 bool operator! ()
const;
170 bool operator==(
pointer const &other)
const;
179 bool operator!=(
pointer const &other)
const;
190 pointer_type operator->()
const;
198 reference_type operator* ()
const;
201 typename Manager::mem_cell pointee;
207 # define IN_UTILMM_SMART_POINTER_HEADER 208 #include "utilmm/smart/bits/pointer.tcc" 209 # undef IN_UTILMM_SMART_POINTER_HEADER 210 #endif // UTILMM_SMART_POINTER_HEADER base_type * pointer_type
basic pointer type
Definition: pointer.hh:67
void swap(const S data, S &buffer)
Definition: endian.hh:46
base_type & reference_type
Basic reference type.
Definition: pointer.hh:73
Generic smart pointer.
Definition: pointer.hh:52
Definition: auto_flag.hh:6
null_access(std::string const &message)
Constructor.
Definition: pointer.hh:35
Manager::base_type base_type
Pointed type.
Definition: pointer.hh:61
Declararation of utilmm::singleton::use class.
Null pointer access exception.
Definition: pointer.hh:29