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)));
144 template <
typename T>
156 template <
typename T>
169 template <
typename T>
179 template <
typename T>
T * pointer() const
Accessor to a pointer to the original instance.
T * addressOf(T &v)
Returns the address of an object (uses correct c++ syntactics).
Embedded control libraries.
ReferenceWrapper< T const > cref(T const &wrapped_object)
virtual ~ReferenceWrapper()
Provides a wrapper which allows the original object to be passed like a reference.
T & reference() const
Accessor to the reference of the original instance.
Default action for detection of the reference wrapper type trait (false).
ReferenceWrapper< T > ref(T &wrapped_object)
ReferenceWrapper(T &t)
Constructs the wrapper around the supplied object instance.