STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Modules | Functions
Utilities

Modules

 Function Objects
 
 Memory
 

Functions

namespace std _GLIBCXX_VISIBILITY (default)
 

Detailed Description

Components deemed generally useful. Includes pair, tuple, forward/move helpers, ratio, function object, metaprogramming and type traits, time, date, and memory functions.

Function Documentation

namespace std _GLIBCXX_VISIBILITY ( default  )

Same as C++11 std::addressof

37 {
38 _GLIBCXX_BEGIN_NAMESPACE_VERSION
39 
40  // Used, in C++03 mode too, by allocators, etc.
45  template<typename _Tp>
46  inline _Tp*
47  __addressof(_Tp& __r) _GLIBCXX_NOEXCEPT
48  {
49  return reinterpret_cast<_Tp*>
50  (&const_cast<char&>(reinterpret_cast<const volatile char&>(__r)));
51  }
52 
53 _GLIBCXX_END_NAMESPACE_VERSION
54 } // namespace