Go to the documentation of this file.
   15 #ifndef ECL_UTILITIES_REFERENCE_WRAPPER_HPP_ 
   16 #define ECL_UTILITIES_REFERENCE_WRAPPER_HPP_ 
   40     return reinterpret_cast<T*
>(
 
   41         &
const_cast<char&
>(
reinterpret_cast<const volatile char &
>(v)));
 
   85 class ReferenceWrapper {
 
  109     operator T& () 
const { 
return *
obj_ptr; }
 
  144 template <
typename T>
 
  156 template <
typename T>
 
  169 template <
typename T>
 
  170 class is_reference_wrapper : 
public False {};
 
  179 template <
typename T>
 
  180 class is_reference_wrapper< ReferenceWrapper<T> > : 
public True {};
 
  
T * addressOf(T &v)
Returns the address of an object (uses correct c++ syntactics).
T & reference() const
Accessor to the reference of the original instance.
virtual ~ReferenceWrapper()
ReferenceWrapper< T const  > cref(T const &wrapped_object)
T * pointer() const
Accessor to a pointer to the original instance.
Provides a wrapper which allows the original object to be passed like a reference.
ReferenceWrapper< T > ref(T &wrapped_object)
ReferenceWrapper(T &t)
Constructs the wrapper around the supplied object instance.
Embedded control libraries.
ecl_utilities
Author(s): Daniel Stonier 
autogenerated on Wed Mar 2 2022 00:16:32